Explorar o código

Removing locatime so this function compiles again.
I don't think it has any practical use anyway.

Juan Linietsky %!s(int64=10) %!d(string=hai) anos
pai
achega
fad1faddae
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      drivers/unix/os_unix.cpp

+ 2 - 2
drivers/unix/os_unix.cpp

@@ -227,8 +227,8 @@ uint64_t OS_Unix::get_system_time_msec() const {
 	struct timeval tv_now;
 	gettimeofday(&tv_now, NULL);
 	//localtime(&tv_now.tv_usec);
-	localtime((const long *)&tv_now.tv_usec);
-	uint64_t msec = tv_now.tv_usec/1000;
+	//localtime((const long *)&tv_now.tv_usec);
+	uint64_t msec = uint64_t(tv_now.tv_sec)*1000+tv_now.tv_usec/1000;
 	return msec;
 }