fixed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user