Changeset 29712
- Timestamp:
- Nov 8, 2010, 3:39:28 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/tools/czartool/Plotter.pm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/czartool/Plotter.pm
r29710 r29712 132 132 133 133 # now delete temp dat files 134 foreach my $stage (keys %gnuplotFiles) { 135 136 unlink($gnuplotFiles{$stage}); 137 138 } 134 foreach my $stage (keys %gnuplotFiles) {unlink($gnuplotFiles{$stage});} 139 135 } 140 136 … … 182 178 if ($numOfPlots == 0 ) { 183 179 184 print "Warning: No plots could be generated for stage '$selectedStage' and label '$label' during time period '$beginTime', '$endTime'\n";180 # print "Warning: No plots could be generated for stage '$selectedStage' and label '$label' during time period '$beginTime', '$endTime'\n"; 185 181 return; 186 182 } … … 216 212 my $outputFile = createImageFileName($self, $label, undef, "h", 0); 217 213 218 my $tmpFile = File::Temp->new( TEMPLATE => "czarplot_gnuplot_".$label."_h.XXXXX", DIR => '/tmp', SUFFIX => ' .dat');214 my $tmpFile = File::Temp->new( TEMPLATE => "czarplot_gnuplot_".$label."_h.XXXXX", DIR => '/tmp', SUFFIX => 'dat'); 219 215 open (GNUDAT, ">".$tmpFile->filename); 220 216 … … 429 425 my ($minX, $maxX, $minY, $maxY, $timeDiff); 430 426 431 my $gnuplotFile = $self->{_czarDb}->createStorageTimeSeriesData($fromTime, $toTime, \$minX, \$maxX, \$minY, \$maxY, \$timeDiff); 427 my $tmpFile = File::Temp->new( TEMPLATE => "czarplot_gnuplot_storage_timeseries.XXXXX", DIR => '/tmp', SUFFIX => 'dat'); 428 $self->{_czarDb}->createStorageTimeSeriesData($tmpFile, $fromTime, $toTime, \$minX, \$maxX, \$minY, \$maxY, \$timeDiff); 432 429 433 430 my $timeFormat = undef; … … 453 450 "set ylabel \"Available (TB)\";" . 454 451 "plot " . 455 "' $gnuplotFile' using 1:2 title \"Available\" with lines lt 2 lw 2\n";452 "'".$tmpFile->filename."' using 1:2 title \"Available\" with lines lt 2 lw 2\n"; 456 453 457 454 print GP "\n"; 458 455 close GP; 459 unlink($gnuplotFile);460 456 } 461 457 … … 471 467 my $outputFile = "$prefix/czarplot_hosts_space.png"; 472 468 my $limit = 97.0; 473 my $tmpFile = File::Temp->new( TEMPLATE => "czarplot_hosts_space.XXXXX", DIR => '/tmp', SUFFIX => ' .dat');469 my $tmpFile = File::Temp->new( TEMPLATE => "czarplot_hosts_space.XXXXX", DIR => '/tmp', SUFFIX => 'dat'); 474 470 $self->{_czarDb}->createHostsData($limit, $tmpFile); 475 471
Note:
See TracChangeset
for help on using the changeset viewer.
