From ea81fc80e385754b307dd9f9444df3aa044f50f2 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 11 Aug 2022 20:13:30 +0100 Subject: [PATCH] Don't add 1 to current relays when iterating --- modules/chankeep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/chankeep.py b/modules/chankeep.py index 6cc501c..ffb2eb7 100644 --- a/modules/chankeep.py +++ b/modules/chankeep.py @@ -20,7 +20,7 @@ def allRelaysActive(net): """ activeRelays = getActiveRelays(net) debug(f"allRelaysActive() active relays for {net}: {activeRelays}") - relayNum = len(activeRelays) + 1 + relayNum = len(activeRelays) existNum = 0 for i in activeRelays: name = net + str(i)