aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-20 11:39:31 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-20 11:39:31 +0000
commitdeb2a10153127d91f2b846362d865b5a09b5af46 (patch)
treefa8bc457760c6eea5004608bd1dffdb1826f4764 /interface
parent6a28960a10e4f90d65772794486028270b6d801e (diff)
downloadrspamd-deb2a10153127d91f2b846362d865b5a09b5af46.tar.gz
rspamd-deb2a10153127d91f2b846362d865b5a09b5af46.zip
[WebUI] Humanize sizes
Diffstat (limited to 'interface')
-rw-r--r--interface/js/app/history.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js
index 11edc21b3..958166257 100644
--- a/interface/js/app/history.js
+++ b/interface/js/app/history.js
@@ -22,8 +22,8 @@
THE SOFTWARE.
*/
-define(['jquery', 'footable'],
-function($) {
+define(['jquery', 'footable', 'humanize'],
+function($, _, Humanize) {
var interface = {};
function unix_time_format(tm) {
@@ -51,6 +51,8 @@ function($) {
if (item.user == null) {
item.user = "none";
}
+
+ item.size = Humanize.compactInteger(item.size);
}
function process_history_v2(data) {