about summary refs log tree commit diff
path: root/sysdeps/unix/bsd/ualarm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/bsd/ualarm.c')
-rw-r--r--sysdeps/unix/bsd/ualarm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/bsd/ualarm.c b/sysdeps/unix/bsd/ualarm.c
index 8d8e01d475..5d1ba1a8db 100644
--- a/sysdeps/unix/bsd/ualarm.c
+++ b/sysdeps/unix/bsd/ualarm.c
@@ -38,5 +38,5 @@ DEFUN(ualarm, (value, interval),
   if (setitimer(ITIMER_REAL, &timer, &otimer) < 0)
     return -1;
 
-  return (otimer.it_value.tv_sec * 1000) + otimer.it_value.tv_usec;
+  return (otimer.it_value.tv_sec * 1000000) + otimer.it_value.tv_usec;
 }