[pbs-devel] [PATCH v4 proxmox-backup 7/8] ui: show removed and pending data of last run in bytes
Stefan Lendl
s.lendl at proxmox.com
Thu Apr 4 15:50:35 CEST 2024
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.44.0
More information about the pbs-devel
mailing list