Changeset 30250 for trunk/tools/czarplot.pl
- Timestamp:
- Jan 12, 2011, 2:52:40 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/tools/czarplot.pl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/czarplot.pl
r29952 r30250 7 7 use POSIX qw/strftime/; 8 8 9 use czartool::CzarDb; 10 use czartool::Gpc1Db; 9 use czartool::Config; 11 10 use czartool::Plotter; 12 11 use czartool::StageMetrics; 13 12 14 my $czarDbName = "czardb";15 13 my $label = undef; 16 14 my $stage = undef; … … 36 34 37 35 GetOptions ( 38 "dbname=s" => \$czarDbName,39 36 "label|l=s" => \$label, 40 37 "stage|s=s" => \$stage, … … 114 111 if ($quit) { exit; } 115 112 113 my $config = new czartool::Config(); 114 116 115 # default values 117 116 if (!$rate && !$magicMask && !$nebulous && !$histogram && !$analysis && !$timeSeries) {$timeSeries = 1;} … … 121 120 else {$savingToFile = 1;} 122 121 123 my $gpc1Db = new czartool::Gpc1Db("gpc1", "ippdb01", "ippuser", "ippuser"); 124 my $czarDb = new czartool::CzarDb($czarDbName, "ippdb01", "ipp", "ipp", $verbose, $save_temps); 125 $czarDb->setDateFormat("%Y%m%d-%H%i%s"); 122 my $czarDb = $config->getCzarDbInstance(); 126 123 127 124 … … 129 126 if ($savingToFile) { 130 127 131 $plotter = czartool::Plotter->new_file( 132 $gpc1Db, 133 $czarDb, 134 $path, 135 $save_temps); 128 $plotter = czartool::Plotter->new_file($config, $path, $save_temps); 136 129 } 137 130 else { 138 131 139 $plotter = czartool::Plotter->new_display( 140 $gpc1Db, 141 $czarDb, 142 $save_temps); 132 $plotter = czartool::Plotter->new_display($config, $save_temps); 143 133 } 144 134 … … 148 138 if ($magicMask) { 149 139 150 $begin = $day;140 $begin = $day; 151 141 $end = $day; 152 142 } … … 167 157 } 168 158 } 159 160 print "B $begin E $end"; 161 169 162 if ($rate) { 170 163
Note:
See TracChangeset
for help on using the changeset viewer.
