prevent timer overflow on 32 bit systems
This commit is contained in:
parent
e8e469729a
commit
eb49f93e99
3 changed files with 9 additions and 9 deletions
2
main.cpp
2
main.cpp
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue