[sr-dev] git:master:e8e11563: app_lua: use 'us' instead of 'ms' in latency execution time logs

Daniel-Constantin Mierla miconda at gmail.com
Fri Mar 29 15:04:37 CET 2019


Module: kamailio
Branch: master
Commit: e8e115631a804de72a1ec9477e21289e9788744b
URL: https://github.com/kamailio/kamailio/commit/e8e115631a804de72a1ec9477e21289e9788744b

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-03-29T15:02:47+01:00

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

- the value is in microseconds

---

Modified: src/modules/app_lua/app_lua_sr.c

---

Diff:  https://github.com/kamailio/kamailio/commit/e8e115631a804de72a1ec9477e21289e9788744b.diff
Patch: https://github.com/kamailio/kamailio/commit/e8e115631a804de72a1ec9477e21289e9788744b.patch

---

diff --git a/src/modules/app_lua/app_lua_sr.c b/src/modules/app_lua/app_lua_sr.c
index 72cbc7180b..9334a67835 100644
--- a/src/modules/app_lua/app_lua_sr.c
+++ b/src/modules/app_lua/app_lua_sr.c
@@ -1956,7 +1956,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,
@@ -1967,7 +1967,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);




More information about the sr-dev mailing list