aboutsummaryrefslogtreecommitdiff
path: root/ddc-ci.c
diff options
context:
space:
mode:
Diffstat (limited to 'ddc-ci.c')
-rw-r--r--ddc-ci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ddc-ci.c b/ddc-ci.c
index c9148dc..7701152 100644
--- a/ddc-ci.c
+++ b/ddc-ci.c
@@ -46,7 +46,7 @@ log_message_custom (void *user_data, const char *quote, const char *fmt,
static void
wait_ms (long ms)
{
- struct timespec ts = { 0, ms * 1000 * 1000 };
+ struct timespec ts = { ms / 1000, (ms % 1000) * 1000 * 1000 };
nanosleep (&ts, NULL);
}