소스 검색

- sleep_us typo fix, thanks go to Tomas Mandys

Andrei Pelinescu-Onciul 20 년 전
부모
커밋
3ab8d9e91d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 );
 }