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