Skip to content

Commit

Permalink
Fix the uptime when a pool is down.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stratehm committed Jun 18, 2015
1 parent 1077201 commit 30e4efc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 30e4efc

Please sign in to comment.