Browse code

htable: fixing htable.stats for max slot value

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

(cherry picked from commit 305381bb6b40dc4859f0862411a0c1a261b476c2)
(cherry picked from commit d4613882da9b478dcb8f01cc38dd9319694c5901)

Dmitri Savolainen authored on 09/12/2015 12:44:03 • Daniel-Constantin Mierla committed on 17/12/2015 09:20:41
Showing 1 changed files
... ...
@@ -1102,7 +1102,7 @@ static void  htable_rpc_stats(rpc_t* rpc, void* c)
1102 1102
 			ht_slot_unlock(ht, i);
1103 1103
 		}
1104 1104
 
1105
-		if(rpc->struct_add(th, "Sddd",
1105
+		if(rpc->struct_add(th, "Sdddd",
1106 1106
 						"name", &ht->name,	/* str */
1107 1107
 						"slots", (int)ht->htsize,	/* uint */
1108 1108
 						"all", (int)all,	/* uint */