From 4c4e8d846bbf341c61b822c716fa89ce6d5dd2b8 Mon Sep 17 00:00:00 2001 From: Daniel Ehlers Date: Thu, 30 Jan 2014 22:08:40 +0100 Subject: [PATCH] rrd: Only decrease client count for legacy nodes. --- rrd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rrd.py b/rrd.py index 26ff956..aaf64d7 100755 --- a/rrd.py +++ b/rrd.py @@ -118,7 +118,8 @@ class rrd: if not node.flags['client']: nodes[node.id] = node node.clients = 0; - clientCount -= 1 # XXX: might not be needed with gluon/alfred + if 'legacy' in node.flags and node.flags['legacy']: + clientCount -= 1 else: clientCount += 1 for link in db.get_links():