graphite-project/whisper — pull request #8 by snore (2012-07-30 07:13:36+00:00)
Title: Trivial fix for whisper-dump

Running whisper-dump on RedHat 5 produces the following error:

Traceback (most recent call last):
File "/usr/bin/whisper-dump.py", line 84, in ?
map = mmap_file(path)
File "/usr/bin/whisper-dump.py", line 19, in mmap_file
map = mmap.mmap(fd, 0, prot=mmap.PROT_READ)
EnvironmentError: [Errno 22] Invalid argument

Which can be fixed by supplying an explicit size to the mmap call.