Browse Source

change client counting of nodes.json based cities (closes #1)

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

+ 1 - 3
modules/ffpb.py

@@ -586,9 +586,7 @@ def ffpb_fetch_stats(bot, url, memoryid):
         if 'legacy' in node['flags'] and node['flags']['legacy']:
             clients_count -= 1
 
-    for link in data['links']:
-        if link['type'] == 'client':
-            clients_count += 1
+        clients_count += node['clientcount']
 
     if not memoryid in bot.memory:
         bot.memory[memoryid] = {}