Module: kamailio
Branch: master
Commit: 254c14517ba698e0e8ed8bb85b0bc24948f48f50
URL:
https://github.com/kamailio/kamailio/commit/254c14517ba698e0e8ed8bb85b0bc24…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-05-04T14:17:20+02:00
stats: use J for printing timestamp to rpc result
---
Modified: src/modules/statsc/statsc_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/254c14517ba698e0e8ed8bb85b0bc24…
Patch:
https://github.com/kamailio/kamailio/commit/254c14517ba698e0e8ed8bb85b0bc24…
---
diff --git a/src/modules/statsc/statsc_mod.c b/src/modules/statsc/statsc_mod.c
index 92447339151..cbba9eb29d7 100644
--- a/src/modules/statsc/statsc_mod.c
+++ b/src/modules/statsc/statsc_mod.c
@@ -410,8 +410,8 @@ static void statsc_rpc_report(rpc_t* rpc, void* ctx)
rpc->fault(ctx, 500, "Error creating rpc (1)");
return;
}
- if(rpc->struct_add(th, "u[",
- "timestamp", (uint64_t)tn,
+ if(rpc->struct_add(th, "J[",
+ "timestamp", (unsigned long long)tn,
"stats", &ts)<0) {
rpc->fault(ctx, 500, "Error creating rpc (2)");
return;