From 2854859a670aabbc8f0c58788898467fd9a22e0e Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 10 Apr 2015 14:27:34 +0200 Subject: [PATCH] Use timeSince() for displaying status changes of services instead of prefixedTimeSince() Note that only the services view excluded the prefix from time diffs when being displayed in the dashboard. I'll readd that for both hosts and services later on. Further, note that only the hosts view excludes the date of the status change when in state pending. I'll add that for the services view too. refs #6778 --- .../monitoring/application/views/scripts/list/services.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monitoring/application/views/scripts/list/services.phtml b/modules/monitoring/application/views/scripts/list/services.phtml index 3b17e1b63..5597585de 100644 --- a/modules/monitoring/application/views/scripts/list/services.phtml +++ b/modules/monitoring/application/views/scripts/list/services.phtml @@ -57,7 +57,7 @@ foreach ($services as $service): service_state, true); ?>
- compact): ?>prefixedTimeSince($service->service_last_state_change); ?>timeSince($service->service_last_state_change); ?> + timeSince($service->service_last_state_change) ?> service_state > 0 && (int) $service->service_state_type === 0): ?>
Soft service_attempt ?>