Changeset 16851


Ignore:
Timestamp:
06/15/13 18:08:23 (11 years ago)
Author:
tbretz
Message:
Changed underflow level from 650 to 600; replaced some console.out by dim.log
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/CheckUnderflow.js

    r16842 r16851  
    164164    if (nn>0)
    165165    {
    166         console.out("  "+new Date().toUTCString()+": Trying to restore last DRS calibration #"+nn+"  ["+runs.time+"]");
     166        dim.log("Trying to restore last DRS calibration #"+nn+"  ["+runs.time+"]");
    167167
    168168        var night;
     
    185185        v8.timeout(3000, function() { if (service_drs.get(0, false).counter>drs_counter) return true; });
    186186
    187         console.out("  "+new Date().toUTCString()+": Last DRS calibration restored ["+(new Date()-now)/1000+"s]");
     187        dim.log("Last DRS calibration restored ["+(new Date()-now)/1000+"s]");
    188188    }
    189189
     
    197197    hist.print();
    198198
    199     var stat0 = Func.stat(data.avg, function(val) { if (val<650) console.out(" VAL="+val); return val<650; });
     199    var stat0 = Func.stat(data.avg, function(val) { if (val<600) console.out(" VAL="+val); return val<600; });
    200200    var stat1 = Func.stat(data.rms);
    201201
     
    226226            throw new Error("Underflow condition detected in about "+parseInt(stat0.count/9+.5)+" DRS.");
    227227
    228         log.warn("There is probably an underflow condition in one DRS... please check manually.");
     228        console.warn("There is probably an underflow condition in one DRS... please check manually.");
    229229    }
    230230}
Note: See TracChangeset for help on using the changeset viewer.