1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00

Pureftpd Byte to bit

This commit is contained in:
SourceDoctor
2020-03-21 22:13:22 +01:00
parent fe2dfe418e
commit 5d9bf9f225

View File

@@ -57,7 +57,7 @@ for line in output.split('\n'):
data[acct][state] = {'bitrate': 0,
'connections': 0
}
bandwidth_bit = int(bandwidth) * 1024
bandwidth_bit = int(bandwidth) * 1024 * 8
data[acct][state]['bitrate'] += bandwidth_bit
data[acct][state]['connections'] += 1