Module: kamailio
Branch: master
Commit: 5966b55bdfd87025bd4459007ffe9eb0558bc16f
URL:
https://github.com/kamailio/kamailio/commit/5966b55bdfd87025bd4459007ffe9eb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2020-04-04T19:50:40+02:00
Merge pull request #2270 from goharahmed/master
kex: added process description for rpc command pkg.stats
---
Modified: src/modules/kex/pkg_stats.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5966b55bdfd87025bd4459007ffe9eb…
Patch:
https://github.com/kamailio/kamailio/commit/5966b55bdfd87025bd4459007ffe9eb…
---
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");