libs/sgi-uhttpd: move exectime inside handle_request
This commit is contained in:
parent
4e3cc9a886
commit
4f65a01295
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,6 @@ limitations under the License.
|
||||||
|
|
||||||
]]--
|
]]--
|
||||||
|
|
||||||
exectime = os.clock()
|
|
||||||
require "nixio.util"
|
require "nixio.util"
|
||||||
require "luci.http"
|
require "luci.http"
|
||||||
require "luci.sys"
|
require "luci.sys"
|
||||||
|
@ -25,6 +24,7 @@ require "luci.dispatcher"
|
||||||
require "luci.ltn12"
|
require "luci.ltn12"
|
||||||
|
|
||||||
function handle_request(env)
|
function handle_request(env)
|
||||||
|
exectime = os.clock()
|
||||||
local renv = {
|
local renv = {
|
||||||
CONTENT_LENGTH = env.CONTENT_LENGTH,
|
CONTENT_LENGTH = env.CONTENT_LENGTH,
|
||||||
CONTENT_TYPE = env.CONTENT_TYPE,
|
CONTENT_TYPE = env.CONTENT_TYPE,
|
||||||
|
|
Loading…
Reference in a new issue