From c4ddce370e1aa477a339fdac2e1463384f6ec94f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 2 Apr 2013 19:01:58 +0200 Subject: whoops, read the filesize instead of the blocksize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- python3/sha3sum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python3') diff --git a/python3/sha3sum.py b/python3/sha3sum.py index 337e5c1..27b9fd1 100755 --- a/python3/sha3sum.py +++ b/python3/sha3sum.py @@ -698,7 +698,7 @@ along with this program. If not, see . SHA3.initialise(r, c, o) blksize = (o + 7) >> 3 try: - blksize = os.stat(os.path.realpath(fn)).st_size + blksize = os.stat(os.path.realpath(fn)).st_blksize except: pass while True: -- cgit v1.2.3-70-g09d2