aboutsummaryrefslogtreecommitdiffstats
path: root/src/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/timer.c')
-rw-r--r--src/timer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/timer.c b/src/timer.c
index 04a6f23c4..29c15eabc 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -67,11 +67,11 @@ void timer_add(Timer *timer, int size)
void timer_sync(Timer *timer)
{
- int64_t sleep;
+ int64_t sleep_duration;
assert(timer->started);
- sleep = timer->time - now();
- if (sleep > 0)
- my_usleep(sleep);
+ sleep_duration = timer->time - now();
+ if (sleep_duration > 0)
+ my_usleep(sleep_duration);
}