Commit bc9cbb02 authored by Guido van Rossum's avatar Guido van Rossum

Tweak the cache sizes to be counted in units of 1024*1024 rather than

1000*1000.  This makes it easier to specify cache sizes for the buddy
system that don't have to be rounded up to the next power of two.  It
does make future reported results incompatible with past results.
parent 8de609cc
......@@ -32,7 +32,8 @@ def usage(msg):
def main():
# Parse options
cachelimit = 20*1000*1000
MB = 1024*1024
cachelimit = 20*MB
simclass = ZEOCacheSimulation
try:
opts, args = getopt.getopt(sys.argv[1:], "bls:")
......@@ -45,7 +46,7 @@ def main():
if o == '-l':
simclass = LRUCacheSimulation
if o == '-s':
cachelimit = int(float(a) * 1e6)
cachelimit = int(float(a)*MB)
if len(args) != 1:
usage("exactly one file argument required")
return 2
......
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