浏览代码

Substract gateways from to get coorect difference between ffhh and ffpb

Michael Schwarz 9 年之前
父节点
当前提交
fb4e8cb62b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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(