summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
Diffstat (limited to 'logic')
-rw-r--r--logic/tracker.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp
index 8367ee2f..48a50d80 100644
--- a/logic/tracker.cpp
+++ b/logic/tracker.cpp
@@ -416,8 +416,9 @@ void Tracker::run()
backlog_time = backlog_time.zero();
}
- const int sleep_time_ms = iround(clamp(const_sleep_ms - backlog_time,
- ns(0), ms(50)).count());
+ const int sleep_time_ms = iround(time_cast<ms>(clamp(const_sleep_ms - backlog_time,
+ ns(0), ms(50)))
+ .count());
portable::sleep(sleep_time_ms);
}