Ignore:
Timestamp:
23 Feb 2008, 22:48:48 (17 years ago)
Author:
Henrik Bettermann
Message:

fix percentage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r3202 r3204  
    14651465        imported = []
    14661466        old_commit_count = 0
    1467         with_error_count = imported_count = 0
     1467        error_count = imported_count = 0
    14681468        already_in = 0
    14691469        for record in items:
     
    15211521            log_list = []
    15221522            if error:
     1523                error_count += 1
    15231524                digest = makeDigest(mapping,data_keys)
    15241525                if digest not in pending_digests:
     
    15361537            if log_list:
    15371538                time_till_now = time.time() - elapse
    1538                 percent_finished = (with_error_count + imported_count)/tti_float*100
     1539                percent_finished = (error_count + imported_count)/tti_float*100
    15391540                log_list.insert(0,("%(percent_finished)6.3f %% done in %(time_till_now)3.2fs," % vars()),)
    15401541                logger.info(' '.join(log_list))
Note: See TracChangeset for help on using the changeset viewer.