only show "latency" tab when there are rrds to be shown.

git-svn-id: http://www.observium.org/svn/observer/trunk@2738 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-11-25 13:57:17 +00:00
parent 5d1c96b756
commit 114797d025

View File

@@ -126,7 +126,7 @@ if (device_permitted($vars['device']) || $check_device == $vars['device'])
}
}
if (count($smokeping_files))
if (count($smokeping_files['in'][$device['hostname']]) || count($smokeping_files['out'][$device['hostname']]))
{
echo('<li class="' . $select['latency'] . '">
<a href="'.generate_device_url($device, array('tab' => 'latency')).'">