1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-17 00:03:29 +03:00

r.started already exists as a built in variable, so let's not make it a function as well.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1470117 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Gruno
2013-04-20 07:18:23 +00:00
parent cf9c1bc673
commit 9f39d246e8

View File

@@ -1092,16 +1092,6 @@ static int lua_ap_scoreboard_worker(lua_State *L)
return 0;
}
/*
* lua_ap_restarted; r:started() - Returns the timestamp of last server
* (re)start
*/
static int lua_ap_restarted(lua_State *L)
{
lua_pushnumber(L, ap_scoreboard_image->global->restart_time);
return 1;
}
/*
* lua_ap_clock; r:clock() - Returns timestamp with microsecond precision
*/
@@ -1996,8 +1986,6 @@ AP_LUA_DECLARE(void) ap_lua_load_request_lmodule(lua_State *L, apr_pool_t *p)
makefun(&lua_ap_scoreboard_process, APL_REQ_FUNTYPE_LUACFUN, p));
apr_hash_set(dispatch, "scoreboard_worker", APR_HASH_KEY_STRING,
makefun(&lua_ap_scoreboard_worker, APL_REQ_FUNTYPE_LUACFUN, p));
apr_hash_set(dispatch, "started", APR_HASH_KEY_STRING,
makefun(&lua_ap_restarted, APL_REQ_FUNTYPE_LUACFUN, p));
apr_hash_set(dispatch, "clock", APR_HASH_KEY_STRING,
makefun(&lua_ap_clock, APL_REQ_FUNTYPE_LUACFUN, p));
apr_hash_set(dispatch, "requestbody", APR_HASH_KEY_STRING,