]> git.proxmox.com Git - pmg-gui.git/commitdiff
use format_size renderer for size in deferred queue listing
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 20 Jan 2020 10:46:04 +0000 (11:46 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 21 Jan 2020 10:06:43 +0000 (11:06 +0100)
The listing of the contents of the deferred queue gets its data via
postqueue (1) json output, which lists the size in bytes.
Change the column renderer to use the Proxmox.Utils.format_size
renderer, which computes a sane human readable unit.

Tested by sending a mail, which gets deferred and comparing the
output with the size of the file on disk in
'/var/spool/postfix/deferred'

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
js/PostfixMailQueue.js

index 101a43b91b36a0e1fe723e64c9a807dc969a5f06..bce489664c24cac77972db6107cecd11763709d9 100644 (file)
@@ -146,7 +146,8 @@ Ext.define('PMG.Postfix.MailQueue', {
            dataIndex: 'arrival_time'
        },
        {
-           header: 'KByte',
+           header: 'Size',
+           renderer: Proxmox.Utils.format_size,
            width: 80,
            dataIndex: 'message_size'
        },