fixed duplicate line

This commit is contained in:
breadlysm 2020-07-20 21:32:52 -04:00
parent 1ef2c6e9f8
commit 557700d2da

View file

@ -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()