Changeset 28784
- Timestamp:
- Jul 29, 2010, 3:18:50 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/tools/czartool/CzarDb.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/czartool/CzarDb.pm
r28783 r28784 135 135 } 136 136 137 138 ###########################################################################139 #140 # Gets time difference in seconds for these two times141 #142 ###########################################################################143 sub getTimeDifference { # TODO fix this144 my ($self, $fromTime, $toTime) = @_;145 146 my $query = $self->{_db}->prepare(<<SQL);147 SELECT148 TIME_TO_SEC(TIMEDIFF($fromTime, $toTime))149 SQL150 151 $query->execute;152 153 return $query->fetchrow_array();154 }155 156 137 ########################################################################### 157 138 # … … 162 143 my ($self, $label, $stage, $fromTime, $toTime, $minX, $maxX, $minY, $maxY, $timeDiff) = @_; 163 144 164 my $dataFile = "/tmp/czarplot_gnuplot_".$label."_".$stage."_t.dat"; # TODO use stage not table145 my $dataFile = "/tmp/czarplot_gnuplot_".$label."_".$stage."_t.dat"; 165 146 open (GNUDAT, ">$dataFile"); 166 147
Note:
See TracChangeset
for help on using the changeset viewer.
