diff --git a/rebooter/src/rebooter.py b/rebooter/src/rebooter.py index f685a3c..d874c28 100644 --- a/rebooter/src/rebooter.py +++ b/rebooter/src/rebooter.py @@ -59,7 +59,7 @@ if __name__ == '__main__': with open('/logs/connectivity.log', 'a') as log: log.write(f'{datetime.now()} - Internet down, rebooting router\n') - consecutive_downtime = 0 + consecutive_internet_downtime = 0 router.reboot() sleep(120) else: @@ -72,6 +72,6 @@ if __name__ == '__main__': with open('/logs/connectivity.log', 'a') as log: log.write(f'{datetime.now()} - Internet and LAN down\n') - consecutive_downtime = 0 + consecutive_internet_downtime = 0 else: - consecutive_downtime = 0 + consecutive_internet_downtime = 0