minigraphs of sensors should be of the last day

git-svn-id: http://www.observium.org/svn/observer/trunk@2566 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-09-23 15:04:04 +00:00
parent bade7fd52a
commit 71f05c1d95

View File

@@ -24,7 +24,7 @@ if (count($sensors))
$graph_array['to'] = $now;
$graph_array['id'] = $sensor['sensor_id'];
$graph_array['type'] = $graph_type;
$graph_array['from'] = $day;
$graph_array['from'] = $config['time']['day'];
$graph_array['legend'] = "no";
$link_array = $graph_array;
@@ -41,6 +41,7 @@ if (count($sensors))
$overlib_content .= "</div>";
$graph_array['width'] = 80; $graph_array['height'] = 20; $graph_array['bg'] = $graph_colour;
$graph_array['from'] = $config['time']['day'];
$sensor_minigraph = generate_graph_tag($graph_array);
$sensor['sensor_descr'] = truncate($sensor['sensor_descr'], 25, '');