Scale up rate by a factor of 8 to go from bytes to bits (#4469)

This commit is contained in:
David Bell
2016-09-17 00:16:55 +01:00
committed by Tony Murray
parent 4eb8960050
commit 5115533c73

View File

@@ -139,8 +139,8 @@ foreach (dbFetchRows($sql, $param) as $port) {
'device' => generate_device_link($device),
'port' => generate_port_link($port),
'ifSpeed' => $port['ifSpeed'],
'ifInOctets_rate' => $port['ifInOctets_rate'],
'ifOutOctets_rate' => $port['ifOutOctets_rate'],
'ifInOctets_rate' => $port['ifInOctets_rate'] * 8,
'ifOutOctets_rate' => $port['ifOutOctets_rate'] * 8,
'ifInUcastPkts_rate' => $port['ifInUcastPkts_rate'],
'ifOutUcastPkts_rate' => $port['ifOutUcastPkts_rate'],
'ifInErrors' => $port['ifInErrors'],