diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-04-02 19:01:58 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-04-02 19:01:58 +0200 |
commit | c4ddce370e1aa477a339fdac2e1463384f6ec94f (patch) | |
tree | 0e9b8a9ed5df87c7cbc1ffce239fcb1081829313 /python3 | |
parent | jni error (diff) | |
download | sha3sum-c4ddce370e1aa477a339fdac2e1463384f6ec94f.tar.gz sha3sum-c4ddce370e1aa477a339fdac2e1463384f6ec94f.tar.bz2 sha3sum-c4ddce370e1aa477a339fdac2e1463384f6ec94f.tar.xz |
whoops, read the filesize instead of the blocksize
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-x | python3/sha3sum.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. 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: |