[pbs-devel] [PATCH proxmox-backup 3/4] ui: don't re-calculate GC duration
Fabian Grünbichler
f.gruenbichler at proxmox.com
Mon Apr 22 13:38:33 CEST 2024
it is returned by the API anyway
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
www/config/GCView.js | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/www/config/GCView.js b/www/config/GCView.js
index 982ab939..bcea72a5 100644
--- a/www/config/GCView.js
+++ b/www/config/GCView.js
@@ -2,16 +2,7 @@ Ext.define('pbs-gc-jobs-status', {
extend: 'Ext.data.Model',
fields: [
'store', 'upid', 'removed-bytes', 'pending-bytes', 'schedule',
- 'next-run', 'last-run-endtime', 'last-run-state',
- {
- name: 'duration',
- calculate: function(data) {
- let endtime = data['last-run-endtime'];
- if (!endtime) return undefined;
- let task = Proxmox.Utils.parse_task_upid(data['upid']);
- return endtime - task.starttime;
- },
- },
+ 'next-run', 'last-run-endtime', 'last-run-state', 'duration',
],
idProperty: 'store',
proxy: {
--
2.39.2
More information about the pbs-devel
mailing list