Explorar el Código

ffpb_fetch_status: handle legacy nodes correctly

Helge Jung hace 9 años
padre
commit
4dd602ceb3
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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