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:
Antonio Almeida
2021-04-06 18:40:23 +00:00
committed by GitHub
parent c97e49db3b
commit d80c19d0dd

View File

@@ -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,