some adjustments
This commit is contained in:
@ -27,7 +27,7 @@ function checkTopicsAvailability()
|
||||
logger(DEBUG, "time is " . time() . " lastSeen is " . $topic->lastSeen, __FILE__ . ":" . __LINE__ );
|
||||
|
||||
if ((time() - $topic->lastSeen > $topic->timeOut*60) and ($topic->notificationSent == false))
|
||||
{
|
||||
{
|
||||
if (logger(ALERT, $topicName . _(" is not available"), __FILE__ . ":" . __LINE__) == false);
|
||||
{
|
||||
$topic->notificationSent = true;
|
||||
@ -37,7 +37,7 @@ function checkTopicsAvailability()
|
||||
}
|
||||
}
|
||||
|
||||
function testActionneurs(array $actionneurs)
|
||||
function testActionneurs(array $actionneurs) //return 0 for no actionneurs and 1 if one actionneur is on
|
||||
{
|
||||
global $indexDevices;
|
||||
$r = 0;
|
||||
@ -59,7 +59,7 @@ function testActionneurs(array $actionneurs)
|
||||
logger(ERROR, _("no device : ") . $device[0] . bool2string($r), __FILE__ . ":" . __LINE__ );
|
||||
}
|
||||
}
|
||||
return !$r;
|
||||
return $r;
|
||||
}
|
||||
|
||||
function htmlGetFriendlyNames($ieeeAddress = '')
|
||||
|
Reference in New Issue
Block a user