rrd: Only decrease client count for legacy nodes.
parent
d9451e2ea7
commit
4c4e8d846b
3
rrd.py
3
rrd.py
|
@ -118,7 +118,8 @@ class rrd:
|
||||||
if not node.flags['client']:
|
if not node.flags['client']:
|
||||||
nodes[node.id] = node
|
nodes[node.id] = node
|
||||||
node.clients = 0;
|
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:
|
else:
|
||||||
clientCount += 1
|
clientCount += 1
|
||||||
for link in db.get_links():
|
for link in db.get_links():
|
||||||
|
|
Loading…
Reference in New Issue