Fixed Util::sleep ignoring values above 10 seconds.

This commit is contained in:
Thulinma 2014-01-29 12:45:21 +01:00
parent a3bce93b7d
commit 9f62fc4c91

View file

@ -26,8 +26,8 @@ void Util::sleep(int ms){
if (ms < 0){ if (ms < 0){
return; return;
} }
if (ms > 10000){ if (ms > 100000){
return; ms = 100000;
} }
struct timespec T; struct timespec T;
T.tv_sec = ms / 1000; T.tv_sec = ms / 1000;