Skip to content

Commit

Permalink
Merge pull request #239 from luvit/fix_hrtime_types
Browse files Browse the repository at this point in the history
HRtime is a double, lets put it into luvit as a double
  • Loading branch information
pquerna committed Jun 8, 2012
2 parents 3f69e44 + 10deb74 commit a9c05ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/luv_misc.c
Expand Up @@ -235,7 +235,7 @@ int luv_now(lua_State* L) {

int luv_hrtime(lua_State* L) {
double now = (double) uv_hrtime() / 1000000.0;
lua_pushinteger(L, now);
lua_pushnumber(L, now);
return 1;
}

Expand Down

0 comments on commit a9c05ba

Please sign in to comment.