summaryrefslogtreecommitdiffhomepage
path: root/logic/pipeline.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-08-25 16:55:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-08-25 16:56:16 +0200
commit366d246f99910c0b793ea227e6a8b3065c77f6f0 (patch)
treec5602cee4c6c69228120fce235a1870b37108456 /logic/pipeline.cpp
parent65c0e5cbb468b241d5968ed67ca7ab5cfd8cf479 (diff)
logic/pipeline: fix typename typo
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};