Changeset 28016 for gs2-extensions

Show
Ignore:
Timestamp:
09.08.2013 13:16:44 (6 years ago)
Author:
jmt12
Message:

Allow the hadoop report generator to parse start and end times expressed as doubles (with microtime) where they used to expect longs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/bin/script/hadoop_report.pl

    r27752 r28016  
    142142        while (my $line = <TIN>) 
    143143        { 
    144           if ($line =~ /\[Started:(\d+)\]/) 
     144          if ($line =~ /\[Started:(\d+(?:\.\d+)?)\]/) 
    145145          { 
    146146            $task_record->{'start'} = $1; 
     
    154154            $task_record->{'cpu'} = $1; 
    155155          } 
    156           elsif ($line =~ /\[Map:([^\]]+)=>1\]/) 
     156          elsif ($line =~ /\[Map:([^\>]+)=>/) 
    157157          { 
    158158            $task_record->{'file'} = $1; 
     
    167167            $io_start_time = 0; 
    168168          } 
    169           elsif ($line =~ /\[Completed:(\d+)\]/) 
     169          elsif ($line =~ /\[Completed:(\d+(?:\.\d+)?)\]/) 
    170170          { 
    171171            my $end_time = $1;