diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2013-11-23 07:11:37 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2013-11-23 07:11:37 (GMT) |
commit | a181951a95ea19225807aa7c716347192c8af1ee (patch) | |
tree | c13871acb363533e9576dfb46dbf83001613cf0b /tests/units/node/stats_node.py | |
parent | 6b1d747f40416c8a70b70953c7c0349e08d46507 (diff) |
Replace rrd ABSOLUTE fields by GAUGE to easy understand node stats
Diffstat (limited to 'tests/units/node/stats_node.py')
-rwxr-xr-x | tests/units/node/stats_node.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/units/node/stats_node.py b/tests/units/node/stats_node.py index aec9102..123d225 100755 --- a/tests/units/node/stats_node.py +++ b/tests/units/node/stats_node.py @@ -378,7 +378,7 @@ class StatsTest(tests.Test): rdb = Rrd('stats', 1)['context'] self.assertEqual([ (ts + 0, {'failed': 0.0, 'downloaded': 0.0, 'total': 0.0, 'released': 0.0}), - (ts + 5, {'failed': 0.0, 'downloaded': 0.2, 'total': 2.0, 'released': 0.0}), + (ts + 5, {'failed': 0.0, 'downloaded': 1.0, 'total': 2.0, 'released': 0.0}), ], [i for i in rdb.get(ts, ts + 20)]) @@ -396,7 +396,7 @@ class StatsTest(tests.Test): rdb = Rrd('stats', 1)['context'] self.assertEqual([ (ts + 0, {'failed': 0.0, 'downloaded': 0.0, 'total': 0.0, 'released': 0.0}), - (ts + 5, {'failed': 0.0, 'downloaded': 0.2, 'total': 2.0, 'released': 0.0}), + (ts + 5, {'failed': 0.0, 'downloaded': 1.0, 'total': 2.0, 'released': 0.0}), ], [i for i in rdb.get(ts, ts + 10)]) @@ -406,8 +406,8 @@ class StatsTest(tests.Test): rdb = Rrd('stats', 1)['context'] self.assertEqual([ (ts + 0, {'failed': 0.0, 'downloaded': 0.0, 'total': 0.0, 'released': 0.0}), - (ts + 5, {'failed': 0.0, 'downloaded': 0.2, 'total': 2.0, 'released': 0.0}), - (ts + 10, {'failed': 0.0, 'downloaded': 0.4, 'total': 3.0, 'released': 0.0}), + (ts + 5, {'failed': 0.0, 'downloaded': 1.0, 'total': 2.0, 'released': 0.0}), + (ts + 10, {'failed': 0.0, 'downloaded': 3.0, 'total': 3.0, 'released': 0.0}), ], [i for i in rdb.get(ts, ts + 20)]) |