Merge pull request #233 from pierotofy/starttime

Fix start time logic
master
Stephen Mather 2025-07-30 18:36:41 -04:00 zatwierdzone przez GitHub
commit 83d75ce14d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -233,9 +233,9 @@ module.exports = class Task{
} }
updateProcessingTime(resetTime){ updateProcessingTime(resetTime){
this.processingTime = resetTime ? this.processingTime = (resetTime || this.dateStarted === 0) ?
-1 : -1 :
new Date().getTime() - this.dateCreated; new Date().getTime() - this.dateStarted;
} }
startTrackingProcessingTime(){ startTrackingProcessingTime(){

Wyświetl plik

@ -1,6 +1,6 @@
{ {
"name": "NodeODM", "name": "NodeODM",
"version": "2.2.3", "version": "2.2.4",
"description": "REST API to access ODM", "description": "REST API to access ODM",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {