Changeset 15071 for trunk


Ignore:
Timestamp:
03/14/13 10:12:32 (12 years ago)
Author:
tbretz
Message:
return does not exist if it is not a function which is called; run.data must be runs.data.
File:
1 edited

Legend:

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

    r15051 r15071  
    108108    dim.wait("MCP", "Idle", 3000);
    109109
    110     var nn = run.data && runs.data.length>0 && runs.obj['roi']>0 ? runs.obj['run'][1].reduce(Func.max) : -1;
     110    var nn = runs.data && runs.data.length>0 && runs.obj['roi']>0 ? runs.obj['run'].reduce(Func.max) : -1;
    111111    if (nn>0)
    112112    {
     
    160160    // Rms[max]=44.0                 Rms[max]=382.1
    161161
    162     if (stat0.count==0)
    163         return;
     162    if (stat0.count>0)
     163    {
     164        if (stat0.count>8)
     165            throw new Error("Underflow condition detected in about "+stat0.count/9+" DRS.");
    164166
    165     if (stat0.count>8)
    166         throw new Error("Underflow condition detected in about "+stat0.count/9+" DRS.");
    167 
    168     log.warn("There is probably an underflow condition in one DRS... please check manually.");
     167        log.warn("There is probably an underflow condition in one DRS... please check manually.");
     168    }
    169169}
    170170
Note: See TracChangeset for help on using the changeset viewer.