From 04162439ff7a29c25ee0181a5a44f76728ed1f89 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 6 Apr 2011 15:18:35 +0200 Subject: [PATCH] Fix nanosleep for Windows --- bacula/src/win32/compat/compat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5