Index: /trunk/FACT++/scripts/CheckUnderflow.js
===================================================================
--- /trunk/FACT++/scripts/CheckUnderflow.js	(revision 16850)
+++ /trunk/FACT++/scripts/CheckUnderflow.js	(revision 16851)
@@ -164,5 +164,5 @@
     if (nn>0)
     {
-        console.out("  "+new Date().toUTCString()+": Trying to restore last DRS calibration #"+nn+"  ["+runs.time+"]");
+        dim.log("Trying to restore last DRS calibration #"+nn+"  ["+runs.time+"]");
 
         var night;
@@ -185,5 +185,5 @@
         v8.timeout(3000, function() { if (service_drs.get(0, false).counter>drs_counter) return true; });
 
-        console.out("  "+new Date().toUTCString()+": Last DRS calibration restored ["+(new Date()-now)/1000+"s]");
+        dim.log("Last DRS calibration restored ["+(new Date()-now)/1000+"s]");
     }
 
@@ -197,5 +197,5 @@
     hist.print();
 
-    var stat0 = Func.stat(data.avg, function(val) { if (val<650) console.out(" VAL="+val); return val<650; });
+    var stat0 = Func.stat(data.avg, function(val) { if (val<600) console.out(" VAL="+val); return val<600; });
     var stat1 = Func.stat(data.rms);
 
@@ -226,5 +226,5 @@
             throw new Error("Underflow condition detected in about "+parseInt(stat0.count/9+.5)+" DRS.");
 
-        log.warn("There is probably an underflow condition in one DRS... please check manually.");
+        console.warn("There is probably an underflow condition in one DRS... please check manually.");
     }
 }
