Commit b599609d authored by gabi's avatar gabi

Merge branch 'master' of https://github.com/gabime/spdlog

parents baec3ec1 49c01c20
...@@ -305,7 +305,7 @@ public: ...@@ -305,7 +305,7 @@ public:
std::lock_guard<std::mutex> l(_mutex); std::lock_guard<std::mutex> l(_mutex);
using namespace std::chrono; using namespace std::chrono;
auto diff = msg.time - _last_update; auto diff = msg.time - _last_update;
auto secs_diff = abs((duration_cast<seconds>(diff)).count()); auto secs_diff = std::abs((duration_cast<seconds>(diff)).count());
if (secs_diff >= 2) if (secs_diff >= 2)
{ {
_value = get_value(msg); _value = get_value(msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment