forced pktloss to integer
This commit is contained in:
parent
7207aeaea9
commit
e21052208e
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -35,7 +35,7 @@ def init_db():
|
|||
|
||||
def pkt_loss(data):
|
||||
if 'packetLoss' in data.keys():
|
||||
return data['packetLoss']
|
||||
return int(data['packetLoss'])
|
||||
else:
|
||||
return 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue