summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-05-11 16:55:23 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-05-13 22:25:09 +0900
commita5635d0c01ac2de60c0c10b2e61372d5f7975bfd (patch)
treede9d0642a0a82dc57f4bfa25c86eb643b7ce311d /src/lib/eina
parent894a1e3cfdfd4278b85acf292186a757885ea2a3 (diff)
eina evlog - fix overflow tracking
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_evlog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eina/eina_evlog.c b/src/lib/eina/eina_evlog.c
index f476e69f59..760c3b44d2 100644
--- a/src/lib/eina/eina_evlog.c
+++ b/src/lib/eina/eina_evlog.c
@@ -126,14 +126,14 @@ eina_evlog_steal(void)
126 { 126 {
127 buf = &(buffers[1]); 127 buf = &(buffers[1]);
128 buf->top = 0; 128 buf->top = 0;
129 buf->overflow--; 129 buf->overflow = 0;
130 stolen = &(buffers[0]); 130 stolen = &(buffers[0]);
131 } 131 }
132 else 132 else
133 { 133 {
134 buf = &(buffers[0]); 134 buf = &(buffers[0]);
135 buf->top = 0; 135 buf->top = 0;
136 buf->overflow--; 136 buf->overflow = 0;
137 stolen = &(buffers[1]); 137 stolen = &(buffers[1]);
138 } 138 }
139 eina_spinlock_release(&_evlog_lock); 139 eina_spinlock_release(&_evlog_lock);