fixed a blunder

This commit is contained in:
breadlysm 2020-07-20 21:45:11 -04:00
parent 557700d2da
commit 3b9ccf5c2e

View file

@ -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']
}