From 71f05c1d9516b518a50df5e0f102464729581d6a Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Fri, 23 Sep 2011 15:04:04 +0000 Subject: [PATCH] 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 --- html/pages/device/overview/generic/sensor.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/pages/device/overview/generic/sensor.inc.php b/html/pages/device/overview/generic/sensor.inc.php index 4a94120d6..c96a6c1ea 100644 --- a/html/pages/device/overview/generic/sensor.inc.php +++ b/html/pages/device/overview/generic/sensor.inc.php @@ -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 .= ""; $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, '');