From 715c63e54dd3e13f4c58af4763d804994d255892 Mon Sep 17 00:00:00 2001 From: shuaiZend Date: Mon, 29 Apr 2024 21:48:41 +0800 Subject: [PATCH] Update request-log2file.w MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 小修改 --- plugins/request-log2file.w | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/request-log2file.w b/plugins/request-log2file.w index 5d2fb0f..56106ff 100644 --- a/plugins/request-log2file.w +++ b/plugins/request-log2file.w @@ -94,7 +94,7 @@ function _M.log_pre_filter(waf) waf_rule_id = waf.rule_id end local info = { - ["__time__"] = ngx.var.msec, + ["__time__"] = math.floor(ngx.var.msec), ["block_action"] = block_action, ["waf_rule_id"] = waf_rule_id, ["time"] = ngx.var.time_iso8601,