fixed duplicate line
This commit is contained in:
parent
1ef2c6e9f8
commit
557700d2da
1 changed files with 2 additions and 3 deletions
5
main.py
5
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()
|
Loading…
Reference in a new issue