From: Eric Bollengier Date: Wed, 6 Apr 2011 13:18:35 +0000 (+0200) Subject: Fix nanosleep for Windows X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=04162439ff7a29c25ee0181a5a44f76728ed1f89;p=bacula%2Fbacula Fix nanosleep for Windows --- diff --git a/bacula/src/win32/compat/compat.cpp b/bacula/src/win32/compat/compat.cpp index cb83a9b36d..48446aac26 100644 --- a/bacula/src/win32/compat/compat.cpp +++ b/bacula/src/win32/compat/compat.cpp @@ -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; }