Spaces:
Running
Running
Ron Au
commited on
Commit
•
41a0653
1
Parent(s):
15ae4a9
feat(eta): Use new ETA calculation method
Browse files
static/js/dom-manipulation.js
CHANGED
@@ -14,7 +14,7 @@ const durationTimer = () => {
|
|
14 |
|
15 |
const updateDuration = (task) => {
|
16 |
if (task?.status == 'completed') {
|
17 |
-
duration =
|
18 |
return;
|
19 |
}
|
20 |
|
|
|
14 |
|
15 |
const updateDuration = (task) => {
|
16 |
if (task?.status == 'completed') {
|
17 |
+
duration = Date.now() / 1_000 - task.created_at;
|
18 |
return;
|
19 |
}
|
20 |
|