summaryrefslogtreecommitdiffstats
path: root/interface/js/app/stats.js
diff options
context:
space:
mode:
Diffstat (limited to 'interface/js/app/stats.js')
-rw-r--r--interface/js/app/stats.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js
index ea1919af5..dd89879a6 100644
--- a/interface/js/app/stats.js
+++ b/interface/js/app/stats.js
@@ -29,6 +29,7 @@ define(["jquery", "d3pie"],
"use strict";
// @ ms to date
function msToTime(seconds) {
+ if (!Number.isFinite(seconds)) return "???";
/* eslint-disable no-bitwise */
var years = seconds / 31536000 >> 0; // 3600*24*365
var months = seconds % 31536000 / 2628000 >> 0; // 3600*24*365/12