This commit is contained in:
2023-12-03 18:06:42 +03:00
parent 786d702c72
commit f4c7353741
2 changed files with 5 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ protected:
String workspace;
TaskState state;
public:
long start_time;
long long start_time;
String printState(){
switch(state){
case Inactive:
@@ -152,8 +152,8 @@ public:
}else if (Utils::Exists(workspace+"/INTERRUPT")){
state=AbortedByUser;
} else {
long now = Utils::getAbsoluteTime();
long delta = now-start_time;
long long now = Utils::getAbsoluteTime();
long long delta = now-start_time;
if (maxtime<delta){
state=AbortedByTimeout;
}