From: Dominik Csapak <d.csapak@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [PATCH proxmox-backup] ui: sync/verify view: show correct duration in task log window
Date: Mon, 27 Apr 2026 14:04:24 +0200 [thread overview]
Message-ID: <20260427120543.2692503-1-d.csapak@proxmox.com> (raw)
By passing the endtime from the grid to the task log window.
If that's not done, the task log window uses the current time to
calculate the duration, which is always wrong for already finished
tasks.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
In addition, we could start returning the endtime in the task status api
too, but that also requires a change to the task log window itself since
it does not handle the endtime coming from the api currently.
This can be done independently though.
www/config/SyncView.js | 3 +++
www/config/VerifyView.js | 3 +++
2 files changed, 6 insertions(+)
diff --git a/www/config/SyncView.js b/www/config/SyncView.js
index fe6c7c83b..386489120 100644
--- a/www/config/SyncView.js
+++ b/www/config/SyncView.js
@@ -135,8 +135,11 @@ Ext.define('PBS.config.SyncJobView', {
return;
}
+ let endtime = selection[0].data['last-run-endtime'];
+
Ext.create('Proxmox.window.TaskViewer', {
upid,
+ endtime,
}).show();
},
diff --git a/www/config/VerifyView.js b/www/config/VerifyView.js
index bbcf3da8d..2c63f0d79 100644
--- a/www/config/VerifyView.js
+++ b/www/config/VerifyView.js
@@ -89,8 +89,11 @@ Ext.define('PBS.config.VerifyJobView', {
return;
}
+ let endtime = selection[0].data['last-run-endtime'];
+
Ext.create('Proxmox.window.TaskViewer', {
upid,
+ endtime,
}).show();
},
--
2.47.3
reply other threads:[~2026-04-27 12:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260427120543.2692503-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox