diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-20 11:39:31 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-20 11:39:31 +0000 |
commit | deb2a10153127d91f2b846362d865b5a09b5af46 (patch) | |
tree | fa8bc457760c6eea5004608bd1dffdb1826f4764 /interface | |
parent | 6a28960a10e4f90d65772794486028270b6d801e (diff) | |
download | rspamd-deb2a10153127d91f2b846362d865b5a09b5af46.tar.gz rspamd-deb2a10153127d91f2b846362d865b5a09b5af46.zip |
[WebUI] Humanize sizes
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/history.js | 6 |
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) { |