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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user