Explorar o código

Fix copy/paste error for Linux

bel %!s(int64=8) %!d(string=hai) anos
pai
achega
0ea0e6ddb7
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/timer.inl

+ 2 - 2
src/timer.inl

@@ -41,8 +41,8 @@ timer_getcurrenttime(void)
 #else
 	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
 }