Selaa lähdekoodia

- sleep_us typo fix, thanks go to Tomas Mandys

Andrei Pelinescu-Onciul 20 vuotta sitten
vanhempi
commit
3ab8d9e91d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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 );
 }