[pbs-devel] [PATCH proxmox-backup v5 07/10] ui: show removed and pending data of last run in bytes
Lukas Wagner
l.wagner at proxmox.com
Thu Apr 18 12:17:03 CEST 2024
From: Stefan Lendl <s.lendl at proxmox.com>
Show the removed and pending data of the last run formatted with
Proxmox.Utils.format_size for better readability identically to data
display in the overview tab.
Signed-off-by: Stefan Lendl <s.lendl at proxmox.com>
Tested-by: Gabriel Goller <g.goller at proxmox.com>
Reviewd-by: Gabriel Goller <g.goller at proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner at proxmox.com>
Suggested-by: Lukas Wagner <l.wagner at proxmox.com>
---
www/config/GCView.js | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/www/config/GCView.js b/www/config/GCView.js
index 63e84111..6e1a6d06 100644
--- a/www/config/GCView.js
+++ b/www/config/GCView.js
@@ -1,7 +1,7 @@
Ext.define('pbs-gc-jobs-status', {
extend: 'Ext.data.Model',
fields: [
- 'store', 'last-run-upid', 'removed-chunks', 'pending-chunks', 'schedule',
+ 'store', 'last-run-upid', 'removed-bytes', 'pending-bytes', 'schedule',
'next-run', 'last-run-endtime', 'last-run-state',
{
name: 'duration',
@@ -203,6 +203,20 @@ Ext.define('PBS.config.GCJobView', {
width: 150,
sortable: true,
},
+ {
+ header: gettext('Removed Data'),
+ dataIndex: 'removed-bytes',
+ renderer: (value) => value !== undefined ?
+ Proxmox.Utils.format_size(value, true) : "-",
+ sortable: false,
+ },
+ {
+ header: gettext('Pending Data'),
+ dataIndex: 'pending-bytes',
+ renderer: (value) => value !== undefined ?
+ Proxmox.Utils.format_size(value, true) : "-",
+ sortable: false,
+ },
],
initComponent: function() {
--
2.39.2
More information about the pbs-devel
mailing list