]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_linux.c
add a "freeslots" field to the host cache
[xonotic/darkplaces.git] / sys_linux.c
index 637cf29e245ae2447641096ed976c2559b4bf379..725eecace8dc1b10d9205ef7ab488fa0e24f0b6c 100644 (file)
@@ -214,14 +214,16 @@ char *Sys_ConsoleInput(void)
        return NULL;
 }
 
-void Sys_Sleep(int milliseconds)
+void Sys_Sleep(int microseconds)
 {
-       if (milliseconds < 1)
-               milliseconds = 1;
 #ifdef WIN32
-       Sleep(milliseconds);
+       if (microseconds < 1000)
+               microseconds = 1000;
+       Sleep(microseconds / 1000);
 #else
-       usleep(milliseconds * 1000);
+       if (microseconds < 1)
+               microseconds = 1;
+       usleep(microseconds);
 #endif
 }