summaryrefslogtreecommitdiffstats
path: root/interface/js/app/history.js
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2020-02-02 20:35:38 +0300
committermoisseev <moiseev@mezonplus.ru>2020-02-02 20:35:38 +0300
commite621411215b44131e4811b8169a96d68c008f35e (patch)
tree335de4cb20fa9d7ee1796186edf124212da55d6e /interface/js/app/history.js
parente438ca71328ff9441cdedd4a46408359142334c0 (diff)
downloadrspamd-e621411215b44131e4811b8169a96d68c008f35e.tar.gz
rspamd-e621411215b44131e4811b8169a96d68c008f35e.zip
[Minor] Format numbers with d3.format,
remove Humanize JS library.
Diffstat (limited to 'interface/js/app/history.js')
-rw-r--r--interface/js/app/history.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js
index a7d656f27..1bee39543 100644
--- a/interface/js/app/history.js
+++ b/interface/js/app/history.js
@@ -22,10 +22,10 @@
THE SOFTWARE.
*/
-/* global FooTable:false */
+/* global d3:false FooTable:false */
-define(["jquery", "footable", "humanize"],
- function ($, _, Humanize) {
+define(["jquery", "footable"],
+ function ($) {
"use strict";
var ui = {};
var prevVersion = null;
@@ -157,7 +157,7 @@ define(["jquery", "footable", "humanize"],
"font-size": "11px",
"minwidth": 50,
},
- formatter: Humanize.compactInteger
+ formatter: d3.format(".3~s")
}, {
name: "time_real",
title: "Scan time",
@@ -245,7 +245,7 @@ define(["jquery", "footable", "humanize"],
"width": 120,
"maxWidth": 120
},
- formatter: Humanize.compactInteger
+ formatter: d3.format(".3~s")
}, {
name: "scan_time",
title: "Scan time",