summaryrefslogtreecommitdiffhomepage
path: root/opentrack
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack')
-rw-r--r--opentrack/tracker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp
index c96bb9b4..bb7a15c6 100644
--- a/opentrack/tracker.cpp
+++ b/opentrack/tracker.cpp
@@ -198,7 +198,7 @@ void Tracker::run() {
logic();
long q = sleep_ms * 1000L - t.elapsed()/1000L;
- usleep(q);
+ usleep(std::max(1L, q));
}
{