]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix nanosleep for Windows
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 6 Apr 2011 13:18:35 +0000 (15:18 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:44:32 +0000 (14:44 +0200)
bacula/src/win32/compat/compat.cpp

index cb83a9b36de720b5d64b04a2fca723a5cbbb174b..48446aac2660a1c6ddfc95a604626c872968cb58 100644 (file)
@@ -1461,7 +1461,7 @@ nanosleep(const struct timespec *req, struct timespec *rem)
 {
     if (rem)
         rem->tv_sec = rem->tv_nsec = 0;
-    Sleep((req->tv_sec * 1000) + (req->tv_nsec/100000));
+    Sleep((req->tv_sec * 1000) + (req->tv_nsec/1000000));
     return 0;
 }