summaryrefslogtreecommitdiff
path: root/accel-cmd/accel_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-cmd/accel_cmd.c')
-rw-r--r--accel-cmd/accel_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-cmd/accel_cmd.c b/accel-cmd/accel_cmd.c
index 3de8624f..6a6dc678 100644
--- a/accel-cmd/accel_cmd.c
+++ b/accel-cmd/accel_cmd.c
@@ -536,7 +536,7 @@ static int set_timespec(struct timespec *timeout, const char *str)
timeout->tv_nsec = 0;
} else if (strcmp(end, "ms") == 0) {
timeout->tv_sec = ulong / 1000;
- timeout->tv_nsec = (ulong % 1000) * 1000;
+ timeout->tv_nsec = (ulong % 1000) * 1000000;
} else if (strcmp(end, "us") == 0) {
timeout->tv_sec = ulong / 1000000;
timeout->tv_nsec = (ulong % 1000000) * 1000;