IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28784


Ignore:
Timestamp:
Jul 29, 2010, 3:18:50 PM (16 years ago)
Author:
rhenders
Message:

Removing redundant code

File:
1 edited

Legend:

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

    r28783 r28784  
    135135}
    136136
    137 
    138 ###########################################################################
    139 #
    140 # Gets time difference in seconds for these two times
    141 #
    142 ###########################################################################
    143 sub getTimeDifference { # TODO fix this
    144     my ($self, $fromTime, $toTime) = @_;
    145 
    146     my $query = $self->{_db}->prepare(<<SQL);
    147     SELECT
    148         TIME_TO_SEC(TIMEDIFF($fromTime, $toTime))
    149 SQL
    150 
    151     $query->execute;
    152 
    153     return $query->fetchrow_array();
    154 }
    155 
    156137###########################################################################
    157138#
     
    162143    my ($self, $label, $stage, $fromTime, $toTime, $minX, $maxX, $minY, $maxY, $timeDiff) = @_;
    163144
    164     my $dataFile = "/tmp/czarplot_gnuplot_".$label."_".$stage."_t.dat"; # TODO use stage not table
     145    my $dataFile = "/tmp/czarplot_gnuplot_".$label."_".$stage."_t.dat";
    165146    open (GNUDAT, ">$dataFile");
    166147
Note: See TracChangeset for help on using the changeset viewer.