Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ok sm popravu manjso napakico z zamiki, pa spremenu da kaze progress …

…bar od 20M fajlov naprej, kar je glih nekje sweet spot pri mojmu kompu (aka prej je instantno tam se pa ze usaj mal caka) - btw samo pr nekterih slikah gre progress veselo do okol 140%, kasna ideja zakaj?
  • Loading branch information...
commit f6055d89a69d7de81d4a3cd9057aea5c7bcb4a06 1 parent 25a5756
Dudu authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 check_files.py
View
6 check_files.py
@@ -33,20 +33,20 @@ def checksum(path):
x = 0
i = 0.0
- if n>100:
+ if n>1280:
print ""
sys.stdout.write(str(i)+'%')
with open(path, 'rb') as f:
for chunk in iter(lambda: f.read(128*hash.block_size), ''):
x = x+1
- if n>100:
+ if n>1280:
if x>=interval:
sys.stdout.write(".")
x = 0
i = i + 2.5
if i%25 ==0:
sys.stdout.write(str(i)+'%')
- hash.update(chunk)
+ hash.update(chunk)
print ""
print " DONE!"
return hash.hexdigest()
Please sign in to comment.
Something went wrong with that request. Please try again.