From 9f803bd3635b1ac621dd4c55cf54d0683fb737ae Mon Sep 17 00:00:00 2001 From: Anderson Luiz Alves Date: Thu, 23 May 2024 12:34:09 -0300 Subject: [PATCH] fix ipdiscover remove unused join accountinfo causing slowdown --- plugins/main_sections/ms_ipdiscover/ms_ipdiscover.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/main_sections/ms_ipdiscover/ms_ipdiscover.php b/plugins/main_sections/ms_ipdiscover/ms_ipdiscover.php index 7986f680b..1c5efec13 100644 --- a/plugins/main_sections/ms_ipdiscover/ms_ipdiscover.php +++ b/plugins/main_sections/ms_ipdiscover/ms_ipdiscover.php @@ -199,9 +199,7 @@ FROM netmap LEFT JOIN - networks ON networks.macaddr = netmap.mac - LEFT JOIN - accountinfo ON accountinfo.TAG = netmap.TAG "; + networks ON networks.macaddr = netmap.mac "; // adding LEFT JOINS for SNMP tables if ($snmpTables) { foreach($snmpTables as $snmpTable) {