We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 115c268 commit 1c79b93Copy full SHA for 1c79b93
templates/queue.html
@@ -412,11 +412,23 @@ <h1>
412
});
413
414
function formatElapsedTime(ms) {
415
- const minutes = Math.floor(ms / 60000);
416
- if (minutes > 0) {
417
- return ` (${minutes}m)`;
418
- }
419
- return '';
+ const totalSeconds = Math.floor(ms / 1000);
+ const hours = Math.floor(totalSeconds / 3600);
+ const remainingSeconds = totalSeconds % 3600;
+ const minutes = Math.floor(remainingSeconds / 60);
+
420
+ let output = '';
421
+ if (hours > 0) {
422
+ output += `${hours}h`;
423
+ }
424
425
+ if (minutes > 0) {
426
+ output += `${minutes}m`;
427
428
+ if (output.length > 0) {
429
+ return ` (${output})`;
430
431
+ return '';
432
}
433
434
function updateElapsedTimes() {
0 commit comments