Fixed Util::sleep ignoring values above 10 seconds.
This commit is contained in:
parent
a3bce93b7d
commit
9f62fc4c91
1 changed files with 2 additions and 2 deletions
|
@ -26,8 +26,8 @@ void Util::sleep(int ms){
|
|||
if (ms < 0){
|
||||
return;
|
||||
}
|
||||
if (ms > 10000){
|
||||
return;
|
||||
if (ms > 100000){
|
||||
ms = 100000;
|
||||
}
|
||||
struct timespec T;
|
||||
T.tv_sec = ms / 1000;
|
||||
|
|
Loading…
Add table
Reference in a new issue