From 9f62fc4c91f922ecce6bf725196db0b016926011 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 29 Jan 2014 12:45:21 +0100 Subject: [PATCH] Fixed Util::sleep ignoring values above 10 seconds. --- lib/timing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/timing.cpp b/lib/timing.cpp index b75ee6a1..582e4f01 100644 --- a/lib/timing.cpp +++ b/lib/timing.cpp @@ -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;