mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-01 02:44:28 +02:00
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
|
#ifndef _WIN32
|
||||||
usleep(timeout * 1000 * 1000);
|
usleep(timeout * 1000 * 1000);
|
||||||
#else /* _WIN32 */
|
#else /* _WIN32 */
|
||||||
Sleep(timeout * 1000);
|
::Sleep(timeout * 1000);
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user