From 814eb2751b99ebb1a0dbc752126317427c940039 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Mon, 22 Apr 2024 11:44:49 +0200 Subject: [PATCH] ui: don't re-calculate GC duration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit it is returned by the API anyway Signed-off-by: Fabian Grünbichler --- 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