Browse Source

ffpb_fetch_status: handle legacy nodes correctly

Helge Jung 9 years ago
parent
commit
4dd602ceb3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      modules/ffpb.py

+ 3 - 0
modules/ffpb.py

@@ -404,6 +404,9 @@ def ffpb_fetch_stats(bot, url, memoryid):
 		if node['flags']['online']:
 			nodes_active += 1
 
+		if 'legacy' in node['flags'] and node['flags']['legacy']:
+			clients_count -= 1
+
 	for link in data['links']:
 		if link['type'] == 'client':
 			clients_count += 1