]> arthur.barton.de Git - bup.git/commit - cmd/midx-cmd.py
cmd/midx: fix SHA_PER_PAGE calculation.
authorAvery Pennarun <apenwarr@gmail.com>
Thu, 26 Aug 2010 04:06:46 +0000 (21:06 -0700)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 26 Aug 2010 04:23:41 +0000 (21:23 -0700)
commit8b4ac80545db00743f298eba0958dfee550da89a
treebdcba7174179fba83b5beaec78265aaca212dab6
parent7bb9af29e46b0a15bd4809d2c83c0ff276c2e8b0
cmd/midx: fix SHA_PER_PAGE calculation.

For some reason we were dividing by 200 instead of by 20, which was way off.
Switch to 20 instead.  Suspiciously, this makes memory usage slightly worse
in my current (smallish) set of test data, so we might need to revert it
later...?  But if we're going to have an adjustment, we should at least make
it clear what for, rather than hiding it in something that looks
suspiciously like a typo.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
cmd/midx-cmd.py