Module: kamailio
Branch: 5.4
Commit: bdf4e004d8606f3228d794d55ce7a522b98129f4
URL:
https://github.com/kamailio/kamailio/commit/bdf4e004d8606f3228d794d55ce7a52…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: 2021-02-20T19:24:36-05:00
kex: display proper values for pkg mem stats
- large amounts of pkg memory were displayed as negative numbers
(cherry picked from commit 220f9ca3c486b92797982a2333343fab463e9e5a)
---
Modified: src/modules/kex/pkg_stats.c
---
Diff:
https://github.com/kamailio/kamailio/commit/bdf4e004d8606f3228d794d55ce7a52…
Patch:
https://github.com/kamailio/kamailio/commit/bdf4e004d8606f3228d794d55ce7a52…
---
diff --git a/src/modules/kex/pkg_stats.c b/src/modules/kex/pkg_stats.c
index 9a2f4a2d37..7f59130ba6 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, "dddddddds",
+ if(rpc->struct_add(th, "duduuuuus",
"entry", i,
"pid", _pkg_proc_stats_list[i].pid,
"rank", _pkg_proc_stats_list[i].rank,