summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2014-10-13 18:49:47 -0500
committerMark Salyzyn2014-10-14 18:57:13 -0500
commiteae155e1ce9c496c2af71a5e56cb182484f10531 (patch)
tree337d13af419491b02c6637462d5cb2d240447740
parente63fb8bd8086a280cae61612da965cb13e75194f (diff)
downloadplatform-system-core-eae155e1ce9c496c2af71a5e56cb182484f10531.tar.gz
platform-system-core-eae155e1ce9c496c2af71a5e56cb182484f10531.tar.xz
platform-system-core-eae155e1ce9c496c2af71a5e56cb182484f10531.zip
logd: insert order for first entry
Change-Id: I39e8e6d32407a1796a0c3a121f9dc4dc5402c3df
-rw-r--r--logd/LogBuffer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/logd/LogBuffer.cpp b/logd/LogBuffer.cpp
index 8c1c3447a..1c74ba5ac 100644
--- a/logd/LogBuffer.cpp
+++ b/logd/LogBuffer.cpp
@@ -147,7 +147,8 @@ void LogBuffer::log(log_id_t log_id, log_time realtime,
147 // NB: if end is region locked, place element at end of list 147 // NB: if end is region locked, place element at end of list
148 LogBufferElementCollection::iterator it = mLogElements.end(); 148 LogBufferElementCollection::iterator it = mLogElements.end();
149 LogBufferElementCollection::iterator last = it; 149 LogBufferElementCollection::iterator last = it;
150 while (--it != mLogElements.begin()) { 150 while (last != mLogElements.begin()) {
151 --it;
151 if ((*it)->getRealTime() <= realtime) { 152 if ((*it)->getRealTime() <= realtime) {
152 // halves the peak performance, use with caution 153 // halves the peak performance, use with caution
153 if (dgramQlenStatistics) { 154 if (dgramQlenStatistics) {