Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f24e49ad authored by Mark Salyzyn's avatar Mark Salyzyn Committed by Gerrit Code Review
Browse files

Merge "logd: reduce chance of dropped 1 messages"

parents dc999df9 35173a9a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -295,7 +295,8 @@ public:
        uint64_t current = e->getRealTime().nsec() - NS_PER_SEC;
        ssize_t index = -1;
        while((index = next(index)) >= 0) {
            if (current > editEntryAt(index).getLast()->getRealTime().nsec()) {
            LogBufferElement *l = editEntryAt(index).getLast();
            if ((l->getDropped() >= 4) && (current > l->getRealTime().nsec())) {
                removeAt(index);
                index = -1;
            }