Browse code

- sleep_us typo fix, thanks go to Tomas Mandys

Andrei Pelinescu-Onciul authored on 01/09/2005 12:22:40
Showing 1 changed files
... ...
@@ -261,7 +261,7 @@ inline static int string2hex(
261 261
 inline static void sleep_us( unsigned int nusecs )
262 262
 {
263 263
 	struct timeval tval;
264
-	tval.tv_sec=nusecs/100000;
264
+	tval.tv_sec =nusecs/1000000;
265 265
 	tval.tv_usec=nusecs%1000000;
266 266
 	select(0, NULL, NULL, NULL, &tval );
267 267
 }