From 5b9bf61ef4fdf6fabe1af70ce045637e0bfb2953 Mon Sep 17 00:00:00 2001 From: Ashish D'Souza Date: Tue, 11 Jul 2023 07:56:03 -0400 Subject: [PATCH] Fixed variable name typo error --- rebooter/src/rebooter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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