aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2020-08-13 20:35:39 +0300
committermoisseev <moiseev@mezonplus.ru>2020-08-13 20:35:39 +0300
commit042053e472148ac7789843d9e720cedcbc717655 (patch)
treedafd88bb1333ce6c3ba1f9f0173de94df7dfe346 /interface
parent3ae5828cfed2dd526b6e79256630920c5b2b4b6a (diff)
downloadrspamd-042053e472148ac7789843d9e720cedcbc717655.tar.gz
rspamd-042053e472148ac7789843d9e720cedcbc717655.zip
[Minor] Convert only finite numbers
Diffstat (limited to 'interface')
-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