Commit 96964cc8 authored by Rusty Russell's avatar Rusty Russell

tdb: use optimal tally size for summary histograms.

parent 60b47bf5
...@@ -88,11 +88,11 @@ char *tdb_summary(struct tdb_context *tdb, enum tdb_summary_flags flags) ...@@ -88,11 +88,11 @@ char *tdb_summary(struct tdb_context *tdb, enum tdb_summary_flags flags)
locked = true; locked = true;
} }
freet = tally_new(100); freet = tally_new(HISTO_HEIGHT);
used = tally_new(100); used = tally_new(HISTO_HEIGHT);
dead = tally_new(100); dead = tally_new(HISTO_HEIGHT);
extra = tally_new(100); extra = tally_new(HISTO_HEIGHT);
hash = tally_new(100); hash = tally_new(HISTO_HEIGHT);
if (!freet || !used || !dead || !extra || !hash) { if (!freet || !used || !dead || !extra || !hash) {
tdb->ecode = TDB_ERR_OOM; tdb->ecode = TDB_ERR_OOM;
goto unlock; goto unlock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment