]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: don't re-calculate GC duration
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 22 Apr 2024 09:44:49 +0000 (11:44 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 22 Apr 2024 11:58:08 +0000 (13:58 +0200)
it is returned by the API anyway

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
www/config/GCView.js

index 982ab9394fdd71f4142052caeba700245274c3da..bcea72a5da2279d78deeb396a015fcc56f5aa2f9 100644 (file)
@@ -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: {