This commit is contained in:
gabi 2014-11-07 16:22:29 +02:00
commit b599609dbf

View File

@ -305,7 +305,7 @@ public:
std::lock_guard<std::mutex> l(_mutex);
using namespace std::chrono;
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)
{
_value = get_value(msg);