Module: kamailio
Branch: 5.2
Commit: f66f2bec4e3de50591e8257b36de695863e740d2
URL: 
https://github.com/kamailio/kamailio/commit/f66f2bec4e3de50591e8257b36de695863e740d2

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2019-03-29T15:05:17+01:00

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

- the value is in microseconds

(cherry picked from commit e8e115631a804de72a1ec9477e21289e9788744b)

---

Modified: src/modules/app_lua/app_lua_sr.c

---

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

---

diff --git a/src/modules/app_lua/app_lua_sr.c b/src/modules/app_lua/app_lua_sr.c
index d223975f04..f44670360f 100644
--- a/src/modules/app_lua/app_lua_sr.c
+++ b/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);


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to