Changeset 11068

Show
Ignore:
Timestamp:
19.01.2006 14:17:27 (14 years ago)
Author:
mdewsnip
Message:

Hacked in a compensation for metadata_read now outputting <File> tags also (thus messing up the progress bar).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/shell/GImportProgressMonitor.java

    r11059 r11068  
    434434    next_progress_value = -1; 
    435435    num_docs = -1; 
    436     num_expected_docs = Gatherer.c_man.getCollection().getCount(); 
     436    // !! HACK: This is multiplied by 2 because the metadata_read now outputs a <File> tag also 
     437    // Ideally the metadata read pass would be completely separate and the GLI could work out the number 
     438    //   of documents accurately and provide a much better progress bar 
     439    num_expected_docs = Gatherer.c_man.getCollection().getCount() * 2; 
    437440    } 
    438441