Changeset 19500


Ignore:
Timestamp:
05/05/19 17:03:13 (6 years ago)
Author:
Daniela Dorner
Message:
fixed eff-ontime
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/dch/db_explorer.php

    r18883 r19500  
    370370    $selecty="SUM(fNumExcEvts)*3600/SUM(TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn)";
    371371    $selecterr="EXCERR(SUM(fNumSigEvts), SUM(fNumBgEvts))/SUM(TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn)*3600";
    372     $isnull="AND NOT ISNULL(fNumExcEvts)";
     372    $isnull="AND NOT ISNULL(fNumExcEvts) AND NOT ISNULL(fEffectiveOn)";
    373373    $titley="Excess events";
    374374    $unity="[1/h]";
     
    554554    ($selectx) AS x,
    555555    ($selecty) AS y,
    556     (SUM(fOnTimeAfterCuts)/60) AS ontime,
     556    (SUM(TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn)/60) AS ontime,
    557557    ($selecterr) AS e,
    558558    (LIMA(SUM(fNumSigEvts), SUM(fNumBgEvts))) AS s,
Note: See TracChangeset for help on using the changeset viewer.