mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 16:04:35 +02:00
Removed bogus and buggy Memcached reference from html/pages/ports.inc.php to avoid duplicates.
This commit is contained in:
@@ -333,21 +333,6 @@ list($format, $subformat) = explode("_", $vars['format']);
|
|||||||
|
|
||||||
$ports = dbFetchRows($query, $param);
|
$ports = dbFetchRows($query, $param);
|
||||||
|
|
||||||
// FIXME - only populate what we need to search at this point, because we shouldn't show *all* ports, as it's silly.
|
|
||||||
|
|
||||||
foreach ($ports as $port)
|
|
||||||
{
|
|
||||||
if ($config['memcached']['enable'])
|
|
||||||
{
|
|
||||||
if ($config['memcached']['enable'])
|
|
||||||
{
|
|
||||||
$state = $memcache->get('port-'.$port['port_id'].'-state');
|
|
||||||
if(is_array($state)) { $ports[$port['port_id']] = array_merge($port, $state); }
|
|
||||||
unset($state);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
switch ($vars['sort'])
|
switch ($vars['sort'])
|
||||||
{
|
{
|
||||||
case 'traffic':
|
case 'traffic':
|
||||||
|
|||||||
Reference in New Issue
Block a user