mirror of
https://github.com/librenms/librenms.git
synced 2024-09-29 22:36:40 +00:00
a369c442eb
git-svn-id: http://www.observium.org/svn/observer/trunk@2643 61d68cd4-352d-0410-923a-c4978735b2b8
60 lines
1.2 KiB
PHP
60 lines
1.2 KiB
PHP
<?php
|
|
|
|
if(!$vars['view']) { $vars['view'] = "outgoing"; }
|
|
|
|
print_optionbar_start();
|
|
|
|
echo("<span style='font-weight: bold;'>Latency</span> » ");
|
|
|
|
$menu_options = array('incoming' => 'Incoming',
|
|
'outgoing' => 'Outgoing');
|
|
|
|
$sep = "";
|
|
foreach ($menu_options as $option => $text)
|
|
{
|
|
echo($sep);
|
|
if ($vars['view'] == $option)
|
|
{
|
|
echo("<span class='pagemenu-selected'>");
|
|
}
|
|
echo(generate_link($text,$vars,array('view'=>$option)));
|
|
if ($vars['view'] == $option)
|
|
{
|
|
echo("</span>");
|
|
}
|
|
$sep = " | ";
|
|
}
|
|
|
|
unset($sep);
|
|
|
|
print_optionbar_end();
|
|
|
|
if($vars['view'] == "incoming")
|
|
{
|
|
|
|
if (count($smokeping_files['in'][$device['hostname']]))
|
|
{
|
|
|
|
$graph_array['type'] = "device_smokeping_in_all";
|
|
$graph_array['id'] = $device['device_id'];
|
|
|
|
include("includes/print-quadgraphs.inc.php");
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if (count($smokeping_files['out'][$device['hostname']]))
|
|
{
|
|
|
|
$graph_array['type'] = "device_smokeping_out_all";
|
|
$graph_array['id'] = $device['device_id'];
|
|
|
|
include("includes/print-quadgraphs.inc.php");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|