mirror of https://github.com/Icinga/icinga2.git
Fixed Utility::Sleep on Windows.
This commit is contained in:
parent
0cb232f494
commit
5ff640fd14
|
@ -330,7 +330,7 @@ void Utility::Sleep(double timeout)
|
|||
#ifndef _WIN32
|
||||
usleep(timeout * 1000 * 1000);
|
||||
#else /* _WIN32 */
|
||||
Sleep(timeout * 1000);
|
||||
::Sleep(timeout * 1000);
|
||||
#endif /* _WIN32 */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue