IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32564


Ignore:
Timestamp:
Oct 20, 2011, 3:57:55 PM (15 years ago)
Author:
rhenders
Message:

added hack to count 'update' and well as 'new'. This is mainly to show accurate stats for LAP processing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/czartool/czartool/Gpc1Db.pm

    r32093 r32564  
    233233
    234234    }
    235     else {
     235    # 'new' stuff really includes 'update' stuff, at least for LAP. This is a hack, but there you go   
     236    elsif ($state eq "new") {
    236237
    237238        $query = $self->{_db}->prepare(<<SQL);
     
    239240            FROM $table
    240241            WHERE label LIKE '$label'
    241             AND state = '$state'
     242            AND (state = 'new' OR state = 'update')
     243SQL
     244    }
     245    else {
     246
     247        $query = $self->{_db}->prepare(<<SQL);
     248        SELECT COUNT(state) 
     249            FROM $table
     250            WHERE label LIKE '$label'
     251            AND state = 'new'
    242252SQL
    243253    }
Note: See TracChangeset for help on using the changeset viewer.