]> jfr.im git - solanum.git/blobdiff - ircd/irc_dictionary.c
ircd: radixtree: allow irc_radixtree_elem_find() to find a fuzzy match instead of...
[solanum.git] / ircd / irc_dictionary.c
index 5be9d479ec3e36274fd2b52ac00885a8fb163b6b..6e86128c0b5b5282e18511c24617b3e34e66bf24 100644 (file)
@@ -823,11 +823,11 @@ void irc_dictionary_stats(struct Dictionary *dict, void (*cb)(const char *line,
        {
                maxdepth = 0;
                sum = stats_recurse(dict->root, 0, &maxdepth);
-               rb_snprintf(str, sizeof str, "%s: Objects: %d, Depth sum: %d, Avg depth: %d, Max depth: %d.", dict->id, dict->count, sum, sum / dict->count, maxdepth);
+               snprintf(str, sizeof str, "%-30s %-15s %-10d %-10d %-10d %-10d", dict->id, "DICT", dict->count, sum, sum / dict->count, maxdepth);
        }
        else
        {
-               rb_snprintf(str, sizeof str, "%s: Objects: 0, Depth sum: 0, Avg depth: 0, Max depth: 0.", dict->id);
+               snprintf(str, sizeof str, "%-30s %-15s %-10s %-10s %-10s %-10s", dict->id, "DICT", "0", "0", "0", "0");
        }
 
        cb(str, privdata);