Fix os.time() to return a number of seconds.

This commit is contained in:
James Roseborough
2013-07-13 15:56:59 +00:00
parent efe0dc42bd
commit 07fb564edd
2 changed files with 6 additions and 3 deletions

View File

@@ -304,8 +304,8 @@ public class OsLib extends TwoArgFunction {
* @param table
* @return long value for the time
*/
protected long time(LuaTable table) {
return System.currentTimeMillis();
protected double time(LuaTable table) {
return System.currentTimeMillis() / 1000.0;
}
/**