summaryrefslogtreecommitdiffhomepage
path: root/logic/pipeline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/pipeline.cpp')
-rw-r--r--logic/pipeline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp
index 81a6989b..bd7f8300 100644
--- a/logic/pipeline.cpp
+++ b/logic/pipeline.cpp
@@ -591,11 +591,11 @@ void pipeline::run()
const ns elapsed_nsecs = t.elapsed<ns>();
t.start();
- if (backlog_time > secs(3) || backlog_time < secs(-3))
+ if (std::chrono::abs(backlog_time) > secs(3))
{
qDebug() << "tracker: backlog interval overflow"
<< ms{backlog_time}.count() << "ms";
- backlog_time = ns{};
+ backlog_time = {};
}
backlog_time += ns{elapsed_nsecs - const_sleep_ms};