Explorar o código

[lua] fix microsecond haxe.Time precision

Justin Donaldson %!s(int64=5) %!d(string=hai) anos
pai
achega
1cdc7a29fe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      std/lua/_std/Sys.hx

+ 1 - 1
std/lua/_std/Sys.hx

@@ -121,6 +121,6 @@ class Sys {
 
 
 	public static function time():Float {
 	public static function time():Float {
 		var stamp = lua.lib.luv.Misc.gettimeofday();
 		var stamp = lua.lib.luv.Misc.gettimeofday();
-		return stamp.seconds + (stamp.microseconds / 100000);
+		return stamp.seconds + (stamp.microseconds / 1000000);
 	}
 	}
 }
 }