Ignore:
Timestamp:
2008-10-20T15:33:25+13:00 (16 years ago)
Author:
kjdon
Message:

fixed up some stuff to do with indexfieldmap. still working on it, but want to commit what I've done

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/basebuildproc.pm

    r17111 r17564  
    144144    $self->{'num_docs'}      = 0;
    145145    $self->{'num_sections'}  = 0;
    146     $self->{'num_bytes'}     = 0;
     146    # reconstructed docs have no text, just metadata, so we need to
     147    # remember how many bytes we had initially
     148    $self->{'num_bytes'}     = $self->{'starting_num_bytes'};
    147149   
    148150    $self->{'num_processed_bytes'} = 0;
     
    425427    # update a few statistics
    426428    $self->{'num_bytes'} += $doc_obj->get_text_length ($section);
     429    print STDERR "num bytes added = ".$doc_obj->get_text_length ($section)."\n";
    427430    $self->{'num_sections'} += 1 unless ($doctype eq "classification");
    428431
Note: See TracChangeset for help on using the changeset viewer.