Module: kamailio
Branch: master
Commit: 3da3a780c9a9a4fc7a0852193080da2cbaa2adcf
URL:
https://github.com/kamailio/kamailio/commit/3da3a780c9a9a4fc7a0852193080da2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-01-14T16:50:07+01:00
kex: use unsigned long for rpc stats.fetchn values
---
Modified: src/modules/kex/core_stats.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3da3a780c9a9a4fc7a0852193080da2…
Patch:
https://github.com/kamailio/kamailio/commit/3da3a780c9a9a4fc7a0852193080da2…
---
diff --git a/src/modules/kex/core_stats.c b/src/modules/kex/core_stats.c
index a1f14a7dc6..ec543d1b60 100644
--- a/src/modules/kex/core_stats.c
+++ b/src/modules/kex/core_stats.c
@@ -496,7 +496,7 @@ static void rpc_fetch_add_stat(rpc_t* rpc, void* ctx, void* hst, char*
g, char*
snprintf(nbuf, 127, "%s.%s", g, n);
if (numeric) {
- res = rpc->struct_add(hst, "d", nbuf, val);
+ res = rpc->struct_add(hst, "j", nbuf, val);
} else {
res = rpc->struct_printf(hst, nbuf, "%lu", val);
}