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." ");
}
}