瀏覽代碼

app_lua: use 'us' instead of 'ms' in latency execution time logs

- the value is in microseconds

(cherry picked from commit e8e115631a804de72a1ec9477e21289e9788744b)
Daniel-Constantin Mierla 6 年之前
父節點
當前提交
f66f2bec4e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/modules/app_lua/app_lua_sr.c

+ 2 - 2
src/modules/app_lua/app_lua_sr.c

@@ -1946,7 +1946,7 @@ int sr_kemi_lua_exec_func(lua_State* L, int eidx)
 						&& lua_getinfo(L, "nSl", &dinfo)>0) {
 				LOG(cfg_get(core, core_cfg, latency_log),
 						"alert - action KSR.%s%s%s(...)"
-						" took too long [%u ms] (%s:%d - %s [%s])\n",
+						" took too long [%u us] (%s:%d - %s [%s])\n",
 						(ket->mname.len>0)?ket->mname.s:"",
 						(ket->mname.len>0)?".":"", ket->fname.s,
 						tdiff,
@@ -1957,7 +1957,7 @@ int sr_kemi_lua_exec_func(lua_State* L, int eidx)
 			} else {
 				LOG(cfg_get(core, core_cfg, latency_log),
 						"alert - action KSR.%s%s%s(...)"
-						" took too long [%u ms]\n",
+						" took too long [%u us]\n",
 						(ket->mname.len>0)?ket->mname.s:"",
 						(ket->mname.len>0)?".":"", ket->fname.s,
 						tdiff);