Changeset 28752 for trunk/tools/czartool/CzarDb.pm
- Timestamp:
- Jul 28, 2010, 4:12:14 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/tools/czartool/CzarDb.pm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/czartool/CzarDb.pm
r28719 r28752 2 2 3 3 package czartool::CzarDb; 4 5 4 6 5 use warnings; … … 10 9 11 10 my @stages = ("chip", "cam", "fake", "warp", "stack", "diff", "magic", "magicDS", "dist"); # TODO put elsewhere 12 13 11 14 12 use base 'czartool::MySQLDb'; … … 20 18 21 19 # Call the constructor of the parent class, Person. 22 my $self = $class->SUPER::new( $_[1], $_[2], $_[3], $_[4], $_[5] );20 my $self = $class->SUPER::new( $_[1], $_[2], $_[3], $_[4], $_[5], $_[6]); 23 21 24 22 bless $self, $class; … … 147 145 ########################################################################### 148 146 sub getTimeDifference { # TODO fix this 149 my ($self, $ save_temps, $fromTime, $toTime) = @_; # TODO save_temps should be constructor arg150 151 my ($tempFile, $tempName) = tempfile( "/tmp/czartool_gnuplot_timeseries.XXXX", UNLINK => !$s ave_temps);147 my ($self, $fromTime, $toTime) = @_; 148 149 my ($tempFile, $tempName) = tempfile( "/tmp/czartool_gnuplot_timeseries.XXXX", UNLINK => !$self->{_save_temps}); 152 150 153 151 my $query = $self->{_db}->prepare(<<SQL); … … 167 165 ########################################################################### 168 166 sub createTimeSeriesData { 169 my ($self, $ save_temps, $label, $table, $fromTime, $toTime, $minX, $maxX, $minY, $maxY, $timeDiff) = @_; # TODO save_temps should be constructor arg170 171 my ($tempFile, $tempName) = tempfile( "/tmp/czartool_gnuplot_timeseries.XXXX", UNLINK => !$s ave_temps);167 my ($self, $label, $table, $fromTime, $toTime, $minX, $maxX, $minY, $maxY, $timeDiff) = @_; 168 169 my ($tempFile, $tempName) = tempfile( "/tmp/czartool_gnuplot_timeseries.XXXX", UNLINK => !$self->{_save_temps}); 172 170 173 171 my $query = $self->{_db}->prepare(<<SQL);
Note:
See TracChangeset
for help on using the changeset viewer.
