commit | 36ee13b6c89625b7d0803abf8e27f68f7e750294 | [log] [tgz] |
---|---|---|
author | Brian Silverman <brians> | Mon Mar 30 01:18:14 2015 -0400 |
committer | Brian Silverman <brians> | Mon Mar 30 01:18:14 2015 -0400 |
tree | beb7860dbe3981de250a4c7d015b99e4fe15d044 | |
parent | 09b30ae8e262b2aaa4b5e38b07a8585eefbff448 [diff] [blame] |
fix the logic for dropping logs Change-Id: If3a1d5e39ae0305dbb6e286ab5049b921ffc3d35
diff --git a/aos/linux_code/logging/linux_logging.cc b/aos/linux_code/logging/linux_logging.cc index c27e94b..b13a740 100644 --- a/aos/linux_code/logging/linux_logging.cc +++ b/aos/linux_code/logging/linux_logging.cc
@@ -108,7 +108,7 @@ if (__builtin_expect(dropped_messages > 0, false)) { ::aos::time::Time message_time = ::aos::time::Time(msg->seconds, msg->nseconds); - if (backoff_start - message_time < kDropBackoff) { + if (message_time - backoff_start < kDropBackoff) { ++dropped_messages; queue->FreeMessage(msg); return;