From 557700d2da398aaf6ab59614822005836740f45c Mon Sep 17 00:00:00 2001 From: breadlysm Date: Mon, 20 Jul 2020 21:32:52 -0400 Subject: [PATCH] fixed duplicate line --- main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index c1e2a89..1c7734c 100755 --- a/main.py +++ b/main.py @@ -81,7 +81,6 @@ def main(): speedtest = subprocess.run( ["speedtest", "--accept-license", "--accept-gdpr", "-f", "json"], capture_output=True) - if speedtest.returncode == 0: # Speedtest was successful. if speedtest.returncode == 0: # Speedtest was successful. data = format_for_influx(speedtest.stdout) print("Speedtest Successful:") @@ -94,7 +93,7 @@ def main(): print(speedtest.stdout) time.sleep(TEST_FAIL_INTERVAL) - + if __name__ == '__main__': print('Speedtest CLI Data Logger to InfluxDB') - main() + main() \ No newline at end of file