From d80c19d0dd64384a8a409faecf9ee87bda1f9fb8 Mon Sep 17 00:00:00 2001 From: Antonio Almeida Date: Tue, 6 Apr 2021 18:40:23 +0000 Subject: [PATCH] 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> --- includes/html/table/ports.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/html/table/ports.inc.php b/includes/html/table/ports.inc.php index cd514202c3..3d4fc858ec 100644 --- a/includes/html/table/ports.inc.php +++ b/includes/html/table/ports.inc.php @@ -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,