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

Commit 5a9d33ee authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

logd: reduce chance of dropped 1 messages

- do not time out at 1 second if drop has count of less than 4

(Cherry picked from commit 35173a9a)

Bug: 20334069
Bug: 20370119
Change-Id: I787cb553dfab5ed71abd6ed72b63de675f834e0c
parent f1a58f8f
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;
            }