Changeset 28188 for gs2-extensions

Show
Ignore:
Timestamp:
30.08.2013 08:58:33 (6 years ago)
Author:
jmt12
Message:

Minor fix to allow for tasks that start in the same second (now each offset by 1 nano second)

Files:
1 modified

Legend:

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

    r27914 r28188  
    149149        chomp($percent_complete); 
    150150        $import_dir = &longestCommonPath($filepath, $import_dir); 
    151         $timing_data->{$worker_id}->{'F'}->{$parts[3]} = {'FN'=>$filepath, 'S'=>$parts[3], 'PS'=>($stop - $parts[5]), 'PE'=>$stop, 'E'=>$stop, 'DL'=>$parts[6], 'PC'=>$percent_complete}; 
     151        my $start_time = $parts[3]; 
     152        while (defined $timing_data->{$worker_id}->{'F'}->{$start_time}) 
     153        { 
     154          $start_time += 0.000001; 
     155        } 
     156        $timing_data->{$worker_id}->{'F'}->{$start_time} = {'FN'=>$filepath, 'S'=>$parts[3], 'PS'=>($stop - $parts[5]), 'PE'=>$stop, 'E'=>$stop, 'DL'=>$parts[6], 'PC'=>$percent_complete}; 
    152157      } 
    153158    }