mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-05-29 20:11:48 +00:00
ui: show removed and pending data of last run in bytes
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@proxmox.com> Tested-by: Gabriel Goller <g.goller@proxmox.com> Reviewd-by: Gabriel Goller <g.goller@proxmox.com> Reviewed-by: Lukas Wagner <l.wagner@proxmox.com> Suggested-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
parent
ce70efc36e
commit
6a20762d99
@ -1,7 +1,7 @@
|
|||||||
Ext.define('pbs-gc-jobs-status', {
|
Ext.define('pbs-gc-jobs-status', {
|
||||||
extend: 'Ext.data.Model',
|
extend: 'Ext.data.Model',
|
||||||
fields: [
|
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',
|
'next-run', 'last-run-endtime', 'last-run-state',
|
||||||
{
|
{
|
||||||
name: 'duration',
|
name: 'duration',
|
||||||
@ -203,6 +203,20 @@ Ext.define('PBS.config.GCJobView', {
|
|||||||
width: 150,
|
width: 150,
|
||||||
sortable: true,
|
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() {
|
initComponent: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user