mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
WebUI - Display interface errors per second instead of accumulated (#12613)
* Display delta errors instead of accumulated * Interface errors rate based on polling time and with units * After some googling changed Eps to EPS to represent errors per second Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
This commit is contained in:
@@ -190,8 +190,8 @@ foreach (dbFetchRows($query, $param) as $port) {
|
||||
'ifOutOctets_rate' => $port['ifOutOctets_rate'] * 8,
|
||||
'ifInUcastPkts_rate' => $port['ifInUcastPkts_rate'],
|
||||
'ifOutUcastPkts_rate' => $port['ifOutUcastPkts_rate'],
|
||||
'ifInErrors' => $port['ifInErrors'],
|
||||
'ifOutErrors' => $port['ifOutErrors'],
|
||||
'ifInErrors' => \LibreNMS\Util\Number::formatSi($port['ifInErrors_delta'] / $port['poll_period'], 2, 3, 'EPS'),
|
||||
'ifOutErrors' => \LibreNMS\Util\Number::formatSi($port['ifOutErrors_delta'] / $port['poll_period'], 2, 3, 'EPS'),
|
||||
'ifType' => \LibreNMS\Util\Rewrite::normalizeIfType($port['ifType']),
|
||||
'ifAlias' => $port['ifAlias'],
|
||||
'actions' => $actions,
|
||||
|
||||
Reference in New Issue
Block a user