prevent timer overflow on 32 bit systems

This commit is contained in:
uvos 2020-07-04 11:50:46 +02:00
parent e8e469729a
commit eb49f93e99
3 changed files with 9 additions and 9 deletions

View file

@ -284,7 +284,7 @@ int main(int argc, char* argv[])
timer.block();
std::cout<<"Will stop pid: "<<prevProcess.getPid()<<" name: "<<prevProcess.getName()<<'\n';
qeuedToStop = prevProcess;
timer.start(config.timeoutSecs*1000*CppTimer::MS_TO_NS, sendEventProcStop, CppTimer::ONESHOT);
timer.start(config.timeoutSecs, 0, sendEventProcStop, CppTimer::ONESHOT);
stoppedProcs.push_back(prevProcess);
}
}