From a59ab553bee34aa363052c7c7484cf63b1d5c65a Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Wed, 25 Mar 2020 09:10:14 -0500 Subject: [PATCH] Don't show deleted ports in device overview (#11344) --- includes/html/graphs/device/bits.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/html/graphs/device/bits.inc.php b/includes/html/graphs/device/bits.inc.php index 704c10d2fc..c81d3604b0 100644 --- a/includes/html/graphs/device/bits.inc.php +++ b/includes/html/graphs/device/bits.inc.php @@ -4,7 +4,7 @@ $ds_in = 'INOCTETS'; $ds_out = 'OUTOCTETS'; -foreach (dbFetchRows('SELECT * FROM `ports` WHERE `device_id` = ? AND `disabled` = 0', array($device['device_id'])) as $port) { +foreach (dbFetchRows('SELECT * FROM `ports` WHERE `device_id` = ? AND `disabled` = 0 AND `deleted` = 0', array($device['device_id'])) as $port) { $ignore = 0; if (is_array(\LibreNMS\Config::get('device_traffic_iftype'))) { foreach (\LibreNMS\Config::get('device_traffic_iftype') as $iftype) {