Merge pull request #396 from f0o/issue-30

Remove cause of duplicate ports listing
This commit is contained in:
Neil Lathwood
2015-01-09 07:57:55 +00:00

View File

@ -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':