diff options
Diffstat (limited to 'suspicious')
-rwxr-xr-x | suspicious | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -304,13 +304,13 @@ for file in filelist: now = datetime.datetime.now() estimate = (((now - start) / (opened + skipped)) * len(filelist)) if options.display_progress: - if len(file)> 60: + if len(file)> 50: prog_file = file.split('/')[0] + "/.../" + file.split('/')[-1] else: prog_file = file - print('\r' + " " * len(progresstext) + '\r') + print('\r' + " " * len(progresstext) + '\r', end='', file=sys.stderr) progresstext = str(((opened + skipped)*1.0/len(filelist))*100)[:5] + '% '+ " time left:" + str(estimate).split('.')[0] + ' ' + prog_file + '\r' - print(progresstext) + print(progresstext, end='', file=sys.stderr) sys.stdout.flush() filecontents = f.read() datasize += len(filecontents) @@ -322,7 +322,7 @@ for file in filelist: #Clear screen of proggress text now that finished scoring file if options.display_progress: - print('\r' + " " * len(progresstext) + '\r') + print('\r' + " " * len(progresstext) + '\r', end='') #Save summary as a file, but if the filename exists do not overwrite, append a number if options.summaryfile and len(filelist) > 0 and not options.displaysummary: |