From 7f4bb93a24ff202b8e5e1196233599badeebb2d0 Mon Sep 17 00:00:00 2001 From: laf Date: Tue, 3 May 2016 23:11:03 +0000 Subject: [PATCH 1/2] Updated sensor hostname to use correct variable --- html/includes/table/sensors.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/includes/table/sensors.inc.php b/html/includes/table/sensors.inc.php index 5bf9641936e2..bce6ecd2ee56 100644 --- a/html/includes/table/sensors.inc.php +++ b/html/includes/table/sensors.inc.php @@ -80,7 +80,7 @@ $link = generate_url(array('page' => 'device', 'device' => $sensor['device_id'], 'tab' => 'health', 'metric' => $sensor['sensor_class'])); - $overlib_content = '

'.$device['hostname'].' - '.$sensor['sensor_descr'].'

'; + $overlib_content = '

'.$sensor['hostname'].' - '.$sensor['sensor_descr'].'

'; foreach (array('day', 'week', 'month', 'year') as $period) { $graph_array['from'] = $config['time'][$period]; $overlib_content .= str_replace('"', "\'", generate_graph_tag($graph_array)); @@ -91,6 +91,7 @@ $graph_array['width'] = 80; $graph_array['height'] = 20; $graph_array['bg'] = 'ffffff00'; +exit; // the 00 at the end makes the area transparent. $graph_array['from'] = $config['time']['day']; $sensor_minigraph = generate_lazy_graph_tag($graph_array); From bc423fb710fe8bd7ff862951837bb72921383dd9 Mon Sep 17 00:00:00 2001 From: laf Date: Wed, 4 May 2016 19:46:42 +0000 Subject: [PATCH 2/2] derp --- html/includes/table/sensors.inc.php | 1 - 1 file changed, 1 deletion(-) diff --git a/html/includes/table/sensors.inc.php b/html/includes/table/sensors.inc.php index bce6ecd2ee56..e054442ea3b1 100644 --- a/html/includes/table/sensors.inc.php +++ b/html/includes/table/sensors.inc.php @@ -91,7 +91,6 @@ $graph_array['width'] = 80; $graph_array['height'] = 20; $graph_array['bg'] = 'ffffff00'; -exit; // the 00 at the end makes the area transparent. $graph_array['from'] = $config['time']['day']; $sensor_minigraph = generate_lazy_graph_tag($graph_array);