Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar-network
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2013-11-23 07:11:37 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2013-11-23 07:11:37 (GMT)
commita181951a95ea19225807aa7c716347192c8af1ee (patch)
treec13871acb363533e9576dfb46dbf83001613cf0b /sugar-network
parent6b1d747f40416c8a70b70953c7c0349e08d46507 (diff)
Replace rrd ABSOLUTE fields by GAUGE to easy understand node stats
Diffstat (limited to 'sugar-network')
-rwxr-xr-xsugar-network5
1 files changed, 3 insertions, 2 deletions
diff --git a/sugar-network b/sugar-network
index 6f83100..8957f99 100755
--- a/sugar-network
+++ b/sugar-network
@@ -289,12 +289,13 @@ class Application(application.Application):
else:
if type(value) not in (list, tuple):
value = [value]
+ term = '\n' if len(value) > 5 else '\t'
for n, i in enumerate(value):
if n:
- self._print('\t')
+ self._print(term)
if type(i) is dict and len(i) == 1:
i = i.values()[0]
- self._print(i)
+ self._print('%s' % i)
self._print('\n')
if type(result) in (list, tuple):