1
0
ithewei 6 жил өмнө
parent
commit
071b79087a
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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();