improve title for ipsla

git-svn-id: http://www.observium.org/svn/observer/trunk@3009 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2012-04-09 17:19:59 +00:00
parent a10d3f75ea
commit 0d669e81a7
2 changed files with 3 additions and 3 deletions

View File

@ -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'])

View File

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