[sr-dev] git:4.3:d4613882: htable: fixing htable.stats for max slot value

Daniel-Constantin Mierla miconda at gmail.com
Thu Dec 17 09:39:32 CET 2015


Module: kamailio
Branch: 4.3
Commit: d4613882da9b478dcb8f01cc38dd9319694c5901
URL: https://github.com/kamailio/kamailio/commit/d4613882da9b478dcb8f01cc38dd9319694c5901

Author: Dmitri Savolainen <savolainen at erinaco.ru>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-12-17T09:36:03+01:00

htable: fixing htable.stats for max slot value

add missed 'd' parameter to rpc->struct_add format string

(cherry picked from commit 305381bb6b40dc4859f0862411a0c1a261b476c2)

---

Modified: modules/htable/htable.c

---

Diff:  https://github.com/kamailio/kamailio/commit/d4613882da9b478dcb8f01cc38dd9319694c5901.diff
Patch: https://github.com/kamailio/kamailio/commit/d4613882da9b478dcb8f01cc38dd9319694c5901.patch

---

diff --git a/modules/htable/htable.c b/modules/htable/htable.c
index 0a31fd7..88ae0e3 100644
--- a/modules/htable/htable.c
+++ b/modules/htable/htable.c
@@ -1102,7 +1102,7 @@ static void  htable_rpc_stats(rpc_t* rpc, void* c)
 			ht_slot_unlock(ht, i);
 		}
 
-		if(rpc->struct_add(th, "Sddd",
+		if(rpc->struct_add(th, "Sdddd",
 						"name", &ht->name,	/* str */
 						"slots", (int)ht->htsize,	/* uint */
 						"all", (int)all,	/* uint */




More information about the sr-dev mailing list