From 0d669e81a76d4c683b84fc2546d3c47a416c3505 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Mon, 9 Apr 2012 17:19:59 +0000 Subject: [PATCH] improve title for ipsla git-svn-id: http://www.observium.org/svn/observer/trunk@3009 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/device/slas.inc.php | 2 +- includes/polling/functions.inc.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/html/pages/device/slas.inc.php b/html/pages/device/slas.inc.php index f162ad71dd..08c4ecea7d 100644 --- a/html/pages/device/slas.inc.php +++ b/html/pages/device/slas.inc.php @@ -54,7 +54,7 @@ foreach ($slas as $sla) if ($vars['view'] != 'all' && $vars['view'] != $sla['rtt_type']) continue; - $name = "SLA #". $sla['sla_nr']; + $name = "SLA #". $sla['sla_nr'] ." - ". $sla_types[$sla['rtt_type']]; if ($sla['tag']) $name .= ": ".$sla['tag']; if ($sla['owner']) diff --git a/includes/polling/functions.inc.php b/includes/polling/functions.inc.php index f4e2687912..d7eba86e59 100644 --- a/includes/polling/functions.inc.php +++ b/includes/polling/functions.inc.php @@ -168,8 +168,6 @@ function poll_device($device, $options) ### If there any don't match, they're added/deleted from the database. ### Ideally we should hold graphs for xx days/weeks/polls so that we don't needlessly hide information. - #print_r($graphs); - foreach (dbFetch("SELECT `graph` FROM `device_graphs` WHERE `device_id` = ?", array($device['device_id'])) as $graph) { if (!isset($graphs[$graph["graph"]])) @@ -184,8 +182,10 @@ function poll_device($device, $options) { if (!isset($oldgraphs[$graph])) { + echo("+"); dbInsert(array('device_id' => $device['device_id'], 'graph' => $graph), 'device_graphs'); } + echo($graph." "); } }