Module: kamailio
Branch: master
Commit: 80dfbefe7d20299a0fbe9515c0d074e874f6fccb
URL:
https://github.com/kamailio/kamailio/commit/80dfbefe7d20299a0fbe9515c0d074e…
Author: Gohar Ahmed <scribedfor(a)gmail.com>
Committer: Gohar Ahmed <scribedfor(a)gmail.com>
Date: 2020-04-02T03:53:00Z
kex: added process description for rpc command pkg.stats
---
Modified: src/modules/kex/pkg_stats.c
---
Diff:
https://github.com/kamailio/kamailio/commit/80dfbefe7d20299a0fbe9515c0d074e…
Patch:
https://github.com/kamailio/kamailio/commit/80dfbefe7d20299a0fbe9515c0d074e…
---
diff --git a/src/modules/kex/pkg_stats.c b/src/modules/kex/pkg_stats.c
index d44f465410..9a2f4a2d37 100644
--- a/src/modules/kex/pkg_stats.c
+++ b/src/modules/kex/pkg_stats.c
@@ -240,7 +240,7 @@ static void rpc_pkg_stats(rpc_t* rpc, void* ctx)
_pkg_proc_stats_list[i].total_size = _pkg_proc_stats_list[0].total_size;
_pkg_proc_stats_list[i].rank = PROC_NOCHLDINIT;
}
- if(rpc->struct_add(th, "dddddddd",
+ if(rpc->struct_add(th, "dddddddds",
"entry", i,
"pid", _pkg_proc_stats_list[i].pid,
"rank", _pkg_proc_stats_list[i].rank,
@@ -248,7 +248,8 @@ static void rpc_pkg_stats(rpc_t* rpc, void* ctx)
"free", _pkg_proc_stats_list[i].available,
"real_used", _pkg_proc_stats_list[i].real_used,
"total_size", _pkg_proc_stats_list[i].total_size,
- "total_frags", _pkg_proc_stats_list[i].total_frags
+ "total_frags", _pkg_proc_stats_list[i].total_frags,
+ "desc",pt[i].desc
)<0)
{
rpc->fault(ctx, 500, "Internal error creating rpc");