From 3401d09b59478eba16cdc40b1e53ec48afee6091 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 4 Sep 2015 15:37:07 +0200 Subject: [PATCH] monitoring/detail: Hide last check counter if the service is pending --- .../views/scripts/show/components/checkstatistics.phtml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml index c2338749c..aeafd42be 100644 --- a/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml +++ b/modules/monitoring/application/views/scripts/show/components/checkstatistics.phtml @@ -20,7 +20,9 @@ if ($object->getType() === $object::TYPE_HOST) { - timeAgo($object->last_check) ?> + state !== 99) { + echo $this->timeUntil($object->last_check); + } ?>