From 3b9ccf5c2e568e3595e0855c828949698e550c28 Mon Sep 17 00:00:00 2001 From: breadlysm Date: Mon, 20 Jul 2020 21:45:11 -0400 Subject: [PATCH] fixed a blunder --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 1c7734c..a47ef6d 100755 --- a/main.py +++ b/main.py @@ -47,7 +47,7 @@ def format_for_influx(cliout): 'time': data['timestamp'], 'fields': { # Byte to Megabit - 'bandwidth': data['download']['bandwidth'], #/125000 + 'bandwidth': data['download']['bandwidth'] / 125000, 'bytes': data['download']['bytes'], 'elapsed': data['download']['elapsed'] } @@ -57,7 +57,7 @@ def format_for_influx(cliout): 'time': data['timestamp'], 'fields': { # Byte to Megabit - 'bandwidth': data['upload']['bandwidth'], #/125000 + 'bandwidth': data['upload']['bandwidth'] / 125000, 'bytes': data['upload']['bytes'], 'elapsed': data['upload']['elapsed'] } @@ -93,7 +93,7 @@ def main(): print(speedtest.stdout) time.sleep(TEST_FAIL_INTERVAL) - + if __name__ == '__main__': print('Speedtest CLI Data Logger to InfluxDB') main() \ No newline at end of file