소스 검색

- "adjusting timer ticks" is printed less often

Andrei Pelinescu-Onciul 19 년 전
부모
커밋
af3f6ba658
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      timer.c

+ 1 - 1
timer.c

@@ -421,7 +421,7 @@ inline static void adjust_ticks()
 				/* fix the ticks */
 				if (delta>(s_ticks_t)TIMER_MAX_DRIFT){
 #ifndef TIMER_DEBUG
-					if (delta > 2*(s_ticks_t)TIMER_MAX_DRIFT)
+					if (delta > 2*(s_ticks_t)TIMER_MAX_DRIFT+1)
 #endif
 						LOG(L_INFO, "adjusting timer ticks (%lu) with %ld ms"
 								" (%ld ticks)\n",