]> git.proxmox.com Git - proxmox-backup.git/commitdiff
tape: volume-statistics - use format_size to display byte counts
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 23 Feb 2021 10:38:41 +0000 (11:38 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 23 Feb 2021 10:38:41 +0000 (11:38 +0100)
www/tape/ChangerStatus.js

index 55ff0ec3b4d457ca024a97b0cc19d479d6990e09..2c814340e416dd7f3a84011fed8e0f32adf0119f 100644 (file)
@@ -251,6 +251,15 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
            me.driveCommand(drive, 'volume-statistics', function(response) {
                let list = [];
                for (let [key, val] of Object.entries(response.result.data)) {
+                   if (key === 'total-native-capacity' ||
+                       key === 'total-used-native-capacity' ||
+                       key === 'lifetime-bytes-read' ||
+                       key === 'lifetime-bytes-written' ||
+                       key === 'last-mount-bytes-read' ||
+                       key === 'last-mount-bytes-written')
+                   {
+                       val = Proxmox.Utils.format_size(val);
+                   }
                    list.push({ key: key, value: val });
                }
                Ext.create('Ext.window.Window', {