Fix link handling.
Accidental the LinkConnector object was used for checking the nodes, this patch fixes this behaviour.alfred-data
parent
62413d81f3
commit
b878028671
10
rrd.py
10
rrd.py
|
@ -110,10 +110,12 @@ class rrd:
|
||||||
else:
|
else:
|
||||||
clientCount += 1
|
clientCount += 1
|
||||||
for link in db.get_links():
|
for link in db.get_links():
|
||||||
if link.source in nodes and not link.target in nodes:
|
source = link.source.interface
|
||||||
nodes[link.source].clients += 1
|
target = link.target.interface
|
||||||
elif link.target in nodes and not link.source in nodes:
|
if source in nodes and not target in nodes:
|
||||||
nodes[link.source].clients += 1
|
nodes[source].clients += 1
|
||||||
|
elif target in nodes and not source in nodes:
|
||||||
|
nodes[target].clients += 1
|
||||||
|
|
||||||
self.checkAndCreateIfNeededGlobalDatabase()
|
self.checkAndCreateIfNeededGlobalDatabase()
|
||||||
self.updateGlobalDatabase(len(nodes),clientCount)
|
self.updateGlobalDatabase(len(nodes),clientCount)
|
||||||
|
|
Loading…
Reference in New Issue