Module: kamailio
Branch: master
Commit: 220f9ca3c486b92797982a2333343fab463e9e5a
URL:
https://github.com/kamailio/kamailio/commit/220f9ca3c486b92797982a2333343fa…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: 2021-02-17T12:08:10-05:00
kex: display proper values for pkg mem stats
- large amounts of pkg memory were displayed as negative numbers
---
Modified: src/modules/kex/pkg_stats.c
---
Diff:
https://github.com/kamailio/kamailio/commit/220f9ca3c486b92797982a2333343fa…
Patch:
https://github.com/kamailio/kamailio/commit/220f9ca3c486b92797982a2333343fa…
---
diff --git a/src/modules/kex/pkg_stats.c b/src/modules/kex/pkg_stats.c
index ee6c637ace..102442f1e9 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,