Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/node/stats.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2012-08-07 04:33:08 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2012-08-07 04:33:08 (GMT)
commitac8afce315db9efa2b801c95e847ba664849d865 (patch)
treea11584095b26adfb720ce430bcc875f8daa49968 /sugar_network/node/stats.py
parent6712b2f724ad4259f9a0312687f066456fdb4cfd (diff)
Process client configuration in more general manner than sharing client stats config
Diffstat (limited to 'sugar_network/node/stats.py')
-rw-r--r--sugar_network/node/stats.py15
1 files changed, 4 insertions, 11 deletions
diff --git a/sugar_network/node/stats.py b/sugar_network/node/stats.py
index 1ae18e4..0f6a049 100644
--- a/sugar_network/node/stats.py
+++ b/sugar_network/node/stats.py
@@ -28,14 +28,7 @@ stats_step = Option(
'step interval in seconds for RRD databases',
default=60, type_cast=int)
-stats_server_rras = Option(
- 'space separated list of RRAs for RRD databases on a server side',
- default='RRA:AVERAGE:0.5:1:4320 RRA:AVERAGE:0.5:5:2016',
- type_cast=lambda x: [i for i in x.split() if i],
- type_repr=lambda x: ' '.join(x))
-
-stats_client_rras = Option(
- 'space separated list of RRAs for RRD databases on client side',
- default='RRA:AVERAGE:0.5:1:4320 RRA:AVERAGE:0.5:5:2016',
- type_cast=lambda x: [i for i in x.split() if i],
- type_repr=lambda x: ' '.join(x))
+stats_rras = Option(
+ 'space separated list of RRAs for RRD databases',
+ default=['RRA:AVERAGE:0.5:1:4320', 'RRA:AVERAGE:0.5:5:2016'],
+ type_cast=Option.list_cast, type_repr=Option.list_repr)