mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 02:21:34 +08:00
Merge branch 'master' of https://github.com/gabime/spdlog
This commit is contained in:
commit
b599609dbf
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user