Changeset 30446 for branches/eam_branches/ipp-20101205/tools/czarmetrics.pl
- Timestamp:
- Jan 31, 2011, 2:51:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/tools/czarmetrics.pl
r29868 r30446 8 8 use CGI::Pretty qw[:standard]; 9 9 10 use czartool::Config; 10 11 use czartool::DayMetrics; 11 12 use czartool::MultiDayMetrics; 12 13 use czartool::MetricsIndex; 13 use czartool::CzarDb;14 use czartool::Gpc1Db;15 14 16 15 my $czarDbName = "czardb"; … … 60 59 if ($quit) {exit;} 61 60 62 my $gpc1Db = new czartool::Gpc1Db("gpc1", "ippdb01", "ippuser", "ippuser"); 63 my $czarDb = new czartool::CzarDb($czarDbName, "ippdb01", "ipp", "ipp", $verbose, $save_temps); 64 $czarDb->setDateFormat("%Y%m%d-%H%i%s"); 61 my $config = new czartool::Config(); 65 62 66 63 if ($index) { 67 64 68 my $metricsIndex = new czartool::MetricsIndex($ gpc1Db, $czarDb, "/data/ipp004.0/ipp/ippMetrics/", 1, 0);65 my $metricsIndex = new czartool::MetricsIndex($config, 1, 0); 69 66 $metricsIndex->writeHTML(); 70 67 exit; … … 82 79 if ($cumulative) { 83 80 84 my $multiDayMetrics = new czartool::MultiDayMetrics($ gpc1Db, $czarDb, "/data/ipp004.0/ipp/ippMetrics/", 1, 0, $begin, $end);81 my $multiDayMetrics = new czartool::MultiDayMetrics($config, 1, 0, $begin, $end); 85 82 $multiDayMetrics->writeHTML(); 86 83 } 87 84 else { 88 85 86 my $czarDb = $config->getCzarDbInstance(); 87 89 88 while (1) { 90 89 91 my $dayMetrics = new czartool::DayMetrics($ gpc1Db, $czarDb, "/data/ipp004.0/ipp/ippMetrics/", 1, 0, $thisDay);90 my $dayMetrics = new czartool::DayMetrics($config, 1, 0, $thisDay); 92 91 $dayMetrics->writeHTML(); 93 92
Note:
See TracChangeset
for help on using the changeset viewer.
