diff options
author | Nils Schneider <nils@nilsschneider.net> | 2014-08-17 19:31:14 +0200 |
---|---|---|
committer | Nils Schneider <nils@nilsschneider.net> | 2014-08-17 19:31:14 +0200 |
commit | 3780fb6cb1b28fc7233e0bb9f2121a3f91a0bfaa (patch) | |
tree | 2cf501619a769a2d0a95d19f6c3c31e1504c06ae | |
parent | a5cb5f0fdb0c53d7ef6d84ee2b2154e09ab27fe7 (diff) |
fix rrd.py for real
-rwxr-xr-x | rrd.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -27,11 +27,11 @@ class rrd: os.mkdir(self.imagePath) def update_database(self,db): - nodes = {} - clientCount = sum(map(lambda d: d.clientcount, db.get_nodes())) + nodes = db.get_nodes() + clientCount = sum(map(lambda d: d.clientcount, nodes)) self.globalDb.update(len(nodes), clientCount) - for node in nodes.values(): + for node in nodes: rrd = NodeRRD( os.path.join(self.dbPath, str(node.id).replace(':', '') + '.rrd'), node |