Kaynağa Gözat

Fix copy/paste error for Linux

bel 8 yıl önce
ebeveyn
işleme
0ea0e6ddb7
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/timer.inl

+ 2 - 2
src/timer.inl

@@ -41,8 +41,8 @@ timer_getcurrenttime(void)
 #else
 #else
 	struct timespec now_ts;
 	struct timespec now_ts;
 
 
-	clock_gettime(CLOCK_MONOTONIC, &now);
-	return (double)now.tv_sec + (double)now.tv_nsec * 1.0E-9;
+	clock_gettime(CLOCK_MONOTONIC, &now_ts);
+	return (double)now_ts.tv_sec + (double)now_ts.tv_nsec * 1.0E-9;
 #endif
 #endif
 }
 }