IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29861


Ignore:
Timestamp:
Nov 26, 2010, 3:20:19 PM (15 years ago)
Author:
rhenders
Message:

Fixed bug whereby czarpoll was creaing metrics for this day rather than previous day

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/czarpoll.pl

    r29805 r29861  
    133133       
    134134                print "* Creating metrics for last 24 hours\n";
    135                 # TODO hardcopded path needs to be in config
    136                 my $dayMetrics = new czartool::DayMetrics($gpc1Db, $czarDb, "/data/ipp004.0/ipp/ippMetrics/", 1, 0, $today);
     135                my $yesterday = $czarDb->subtractInterval($today, "1 DAY");
     136                # TODO hardcoded path needs to be in config
     137                my $dayMetrics = new czartool::DayMetrics($gpc1Db, $czarDb, "/data/ipp004.0/ipp/ippMetrics/", 1, 0, $yesterday);
    137138                $dayMetrics->writeHTML();
    138 
    139139                $doneMetricsToday = 1;
    140140        }
Note: See TracChangeset for help on using the changeset viewer.