more smokeping

git-svn-id: http://www.observium.org/svn/observer/trunk@2704 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-10-28 18:29:22 +00:00
parent 69547671c0
commit a60c0fd561
5 changed files with 255 additions and 5 deletions
+2 -2
View File
@@ -275,7 +275,7 @@ function getifhost($id)
function gethostbyid($id)
{
global $cache;
if (isset($cache['devices']['id'][$id]['hostname']))
{
$hostname = $cache['devices']['id'][$id]['hostname'];
@@ -284,7 +284,7 @@ function gethostbyid($id)
{
$hostname = dbFetchCell("SELECT `hostname` FROM `devices` WHERE `device_id` = ?", array($id));
}
return $hostname;
}