- Timestamp:
- 03/14/13 10:12:32 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/CheckUnderflow.js
r15051 r15071 108 108 dim.wait("MCP", "Idle", 3000); 109 109 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; 111 111 if (nn>0) 112 112 { … … 160 160 // Rms[max]=44.0 Rms[max]=382.1 161 161 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."); 164 166 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 } 169 169 } 170 170
Note:
See TracChangeset
for help on using the changeset viewer.