diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-08-25 16:55:37 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-08-25 16:56:16 +0200 |
commit | 366d246f99910c0b793ea227e6a8b3065c77f6f0 (patch) | |
tree | c5602cee4c6c69228120fce235a1870b37108456 | |
parent | 65c0e5cbb468b241d5968ed67ca7ab5cfd8cf479 (diff) |
logic/pipeline: fix typename typo
-rw-r--r-- | logic/pipeline.cpp | 4 | ||||
-rw-r--r-- | logic/pipeline.hpp | 2 |
2 files changed, 3 insertions, 3 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}; diff --git a/logic/pipeline.hpp b/logic/pipeline.hpp index cdcf0b41..0cdeebfb 100644 --- a/logic/pipeline.hpp +++ b/logic/pipeline.hpp @@ -116,7 +116,7 @@ class OTR_LOGIC_EXPORT pipeline : private QThread, private bits //state_ state, scaled_state; state_ scaled_state; - ms backlog_time {}; + ns backlog_time {}; bool tracking_started = false; |