mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #396 from f0o/issue-30
Remove cause of duplicate ports listing
This commit is contained in:
@ -333,21 +333,6 @@ list($format, $subformat) = explode("_", $vars['format']);
|
||||
|
||||
$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'])
|
||||
{
|
||||
case 'traffic':
|
||||
|
Reference in New Issue
Block a user