Commit eb9205099c998c7ec2005da82a184dd38cdc6bde

Authored by Michael Mayer
1 parent c8d78739

minor improvement to logging

Showing 1 changed file with 1 additions and 1 deletions
cscripts/csiactcopy.py
@@ -364,7 +364,7 @@ class csiactcopy(ctools.cscript): @@ -364,7 +364,7 @@ class csiactcopy(ctools.cscript):
364 364
365 # Log progress 365 # Log progress
366 fraction = float(k) / float(len(files)) * 100.0 366 fraction = float(k) / float(len(files)) * 100.0
367 - if fraction > last_fraction: 367 + while fraction > last_fraction:
368 if self.logNormal() and not self.logVerbose(): 368 if self.logNormal() and not self.logVerbose():
369 self.log.parformat("Status") 369 self.log.parformat("Status")
370 self.log(str(int(last_fraction))+"%") 370 self.log(str(int(last_fraction))+"%")