monitoring/detail: Show the expected next update if the host or service is not actively checked

refs #8378
This commit is contained in:
Eric Lippmann 2015-09-04 17:14:16 +02:00
parent 24f3d42d96
commit 363f6271d9
1 changed files with 5 additions and 1 deletions

View File

@ -47,7 +47,11 @@
}
} ?>
<?php if ((int) $object->state !== 99) {
echo $this->timeUntil($object->next_check);
if ((bool) $object->active_checks_enabled) {
echo $this->timeUntil($object->next_check);
} else {
echo sprintf($this->translate('expected %s'), $this->timeUntil($object->next_update));
}
} ?>
</td>
</tr>