Explorar el Código

Substract gateways from to get coorect difference between ffhh and ffpb

Michael Schwarz hace 9 años
padre
commit
fb4e8cb62b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      modules/ffpb_hamburg.py

+ 1 - 1
modules/ffpb_hamburg.py

@@ -59,7 +59,7 @@ def ffpb_hamburg(bot, trigger):
         bot.say('Bitte später nochmal fragen :)')
         return
 
-    diff_nodes = hamburg_data['nodes_active'] - stats['nodes_active']
+    diff_nodes = hamburg_data['nodes_active'] - stats['nodes_active'] - stats['gateways_active']
     diff_clients = hamburg_data['clients'] - stats['clients_unique']
 
     bot.say('Hamburg: {0} Knoten (= PB{1:+g}), {2} Clients (= PB{3:+g})'.format(