fix smokeping graphs (id -> device)

git-svn-id: http://www.observium.org/svn/observer/trunk@3177 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2012-05-13 18:59:39 +00:00
parent 640bb6254e
commit b5323bad76

View File

@@ -40,7 +40,7 @@ if($vars['view'] == "incoming")
{
$graph_array['type'] = "device_smokeping_in_all_avg";
$graph_array['id'] = $device['device_id'];
$graph_array['device'] = $device['device_id'];
echo('<tr><td>');
echo('<h3>Average</h3>');
@@ -69,7 +69,7 @@ if($vars['view'] == "incoming")
echo('<tr><td>');
echo('<h3>'.generate_device_link($host).'</h3>');
$graph_array['type'] = "smokeping_in";
$graph_array['id'] = $device['device_id'];
$graph_array['device'] = $device['device_id'];
$graph_array['src'] = $host['device_id'];
include("includes/print-graphrow.inc.php");
@@ -86,7 +86,7 @@ if($vars['view'] == "incoming")
{
$graph_array['type'] = "device_smokeping_out_all_avg";
$graph_array['id'] = $device['device_id'];
$graph_array['device'] = $device['device_id'];
echo('<tr><td>');
echo('<h3>Aggregate</h3>');
@@ -116,7 +116,7 @@ if($vars['view'] == "incoming")
echo('<tr><td>');
echo('<h3>'.generate_device_link($host).'</h3>');
$graph_array['type'] = "smokeping_out";
$graph_array['id'] = $device['device_id'];
$graph_array['device'] = $device['device_id'];
$graph_array['dest'] = $host['device_id'];
include("includes/print-graphrow.inc.php");