There was an error while loading. Please reload this page.
1 parent 407000a commit 698d7deCopy full SHA for 698d7de
lib/resty/core/time.lua
@@ -72,12 +72,14 @@ end
72
73
74
function ngx.now()
75
- return tonumber(ngx_lua_ffi_now())
+ local now = tonumber(ngx_lua_ffi_now())
76
+ return now
77
end
78
79
80
function ngx.time()
- return tonumber(ngx_lua_ffi_time())
81
+ local time = tonumber(ngx_lua_ffi_time())
82
+ return time
83
84
85
@@ -168,7 +170,8 @@ function ngx.parse_http_time(time_str)
168
170
return nil
169
171
172
- return tonumber(res)
173
+ local time = tonumber(res)
174
175
176
177
0 commit comments