From 35f42e0b0f338ef1a1582c8fe52f2cc672dad74c Mon Sep 17 00:00:00 2001 From: Alexey Kopytov Date: Sun, 25 Mar 2012 10:10:32 +0400 Subject: [PATCH] Fixed a typo in the previous revision resulting in the "uninitialized timer queried" fatal error. --- sysbench/sb_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysbench/sb_timer.c b/sysbench/sb_timer.c index e09f931..91cd3cf 100644 --- a/sysbench/sb_timer.c +++ b/sysbench/sb_timer.c @@ -72,7 +72,7 @@ int sb_timer_initialized(sb_timer_t *t) /* check whether the timer is running */ int sb_timer_running(sb_timer_t *t) { - return t->state != TIMER_RUNNING; + return t->state == TIMER_RUNNING; } /* start timer */