Browse Source

- sleep_us typo fix, thanks go to Tomas Mandys

Andrei Pelinescu-Onciul 20 years ago
parent
commit
3ab8d9e91d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ut.h

+ 1 - 1
ut.h

@@ -261,7 +261,7 @@ inline static int string2hex(
 inline static void sleep_us( unsigned int nusecs )
 {
 	struct timeval tval;
-	tval.tv_sec=nusecs/100000;
+	tval.tv_sec =nusecs/1000000;
 	tval.tv_usec=nusecs%1000000;
 	select(0, NULL, NULL, NULL, &tval );
 }