IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 29, 2010, 2:46:11 PM (16 years ago)
Author:
rhenders
Message:

Not using temp files anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czartool/Czarplot.pm

    r28776 r28783  
    44use warnings;
    55use strict;
    6 
    7 use File::Temp qw(tempfile);
    86
    97my @allStages = ("chip", "cam", "fake", "warp", "stack", "diff", "magic", "magicDS", "dist");
     
    10098    my $outputFile = createImageFileName($self, $label, undef, "h");
    10199
    102     my ($tempFile, $inputFile) = tempfile( "/tmp/czartool_gnuplot_histogram.XXXX", UNLINK => !$self->{_save_temps});
     100    my $inputFile = "/tmp/czarplot_gnuplot_".$label."_h.dat"; # TODO use stage not table
     101    open (GNUDAT, ">$inputFile");
     102
    103103    my ($processed, $pending, $faults);
    104104    my $stage = undef;
     
    106106
    107107        $self->{_czarDb}->countProcessedPendingAndFaults($label, $stage, $beginTime, $endTime, \$processed, \$pending, \$faults);
    108         print $tempFile "$stage $processed, $pending, $faults\n";
    109     }
    110 
    111     close($tempFile);
     108        print GNUDAT "$stage $processed, $pending, $faults\n";
     109    }
     110
     111    close(GNUDAT);
    112112
    113113    plotHistogram($self, $inputFile, $outputFile, $label, $beginTime, $endTime);
Note: See TracChangeset for help on using the changeset viewer.