You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/05/19 22:00:19 UTC

[05/12] incubator-mynewt-core git commit: Send logs after timestamp and index

Send logs after timestamp and index


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/bf784ea6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/bf784ea6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/bf784ea6

Branch: refs/heads/develop
Commit: bf784ea60ea9cccd1c139da9480b681308c824db
Parents: a3c6c73
Author: Vipul Rahane <vi...@runtime.io>
Authored: Tue Apr 26 14:46:17 2016 -0700
Committer: Vipul Rahane <vi...@runtime.io>
Committed: Tue May 17 12:28:07 2016 -0700

----------------------------------------------------------------------
 sys/log/src/log_nmgr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/bf784ea6/sys/log/src/log_nmgr.c
----------------------------------------------------------------------
diff --git a/sys/log/src/log_nmgr.c b/sys/log/src/log_nmgr.c
index 5507992..1b738a5 100644
--- a/sys/log/src/log_nmgr.c
+++ b/sys/log/src/log_nmgr.c
@@ -80,9 +80,9 @@ log_nmgr_add_entry(struct log *log, void *arg, void *dptr, uint16_t len)
     }
 
     /* Matching timestamps and indices for sending a log entry */
-    if (ueh.ue_ts < encode_off->eo_ts   ||
+    if (ueh.ue_ts <= encode_off->eo_ts  ||
         (ueh.ue_ts == encode_off->eo_ts &&
-         ueh.ue_index < encode_off->eo_index)) {
+         ueh.ue_index <= encode_off->eo_index)) {
         goto err;
     }