ithewei hace 6 años
padre
commit
071b79087a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      base/htime.h

+ 1 - 1
base/htime.h

@@ -83,7 +83,7 @@ unsigned long long gethrtime();
 static inline unsigned long long timestamp_ms() {
     struct timeval tv;
     gettimeofday(&tv, NULL);
-    return tv_sec * (unsigned long long)1000 + tv_usec/1000;
+    return tv.tv_sec * (unsigned long long)1000 + tv.tv_usec/1000;
 }
 
 datetime_t datetime_now();