|
@@ -95,7 +95,7 @@ class System extends PluginStrategy
|
|
|
$qs = new QueueSystem('FindBoxService_isAlive');
|
|
$qs = new QueueSystem('FindBoxService_isAlive');
|
|
|
if (!$qs->check()) {
|
|
if (!$qs->check()) {
|
|
|
$lastUpdate = time() - $qs->command;
|
|
$lastUpdate = time() - $qs->command;
|
|
|
- if ($lastUpdate > ($f3->get('FINDBOXSERVICE.SLEEPTIME') / 1000) * 2) { // attende il doppio del tempo
|
|
|
|
|
|
|
+ if ($lastUpdate > $f3->get('FINDBOXSERVICE.GRACE_PERIOD_SEC')) {
|
|
|
$omlNotifications = new Notifications();
|
|
$omlNotifications = new Notifications();
|
|
|
$omlNotifications->notify(Notifications::FB_NOTALIVE, 'Errore: Servizio di FindBox non disponibile');
|
|
$omlNotifications->notify(Notifications::FB_NOTALIVE, 'Errore: Servizio di FindBox non disponibile');
|
|
|
} else {
|
|
} else {
|