From 30e4efcc6a85063d4ab4eadbc2988c192dc87cab Mon Sep 17 00:00:00 2001 From: Stratehm Date: Thu, 18 Jun 2015 16:57:43 +0200 Subject: [PATCH] Fix the uptime when a pool is down. --- src/main/resources/webapp/js/libs/ractive.customDefaults.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/webapp/js/libs/ractive.customDefaults.js b/src/main/resources/webapp/js/libs/ractive.customDefaults.js index 66ea2dc..afb2fb0 100644 --- a/src/main/resources/webapp/js/libs/ractive.customDefaults.js +++ b/src/main/resources/webapp/js/libs/ractive.customDefaults.js @@ -16,7 +16,7 @@ define(['ractivejsWithoutDefaults', 'i18next', 'moment', 'jquery'], function(Rac // since Ractivejs reevaluates functions that depends on a reference that has // changed. var locale = this.get('locale'); - return moment.duration(duration).humanize(); + return duration != 0 ? moment.duration(duration).humanize() : 0; } helpers.formatDateTime = function(timestamp) {