diff --git a/CEP/Imager/LofarFT/src/LofarConvolutionFunction.cc b/CEP/Imager/LofarFT/src/LofarConvolutionFunction.cc index 9ae3098c9ff5a27c77b11300caa53dad161481f3..3e16b4013caef8801aa39083a036ebb7640b6021 100644 --- a/CEP/Imager/LofarFT/src/LofarConvolutionFunction.cc +++ b/CEP/Imager/LofarFT/src/LofarConvolutionFunction.cc @@ -918,7 +918,6 @@ namespace LOFAR double duration, double timeCF) const { - os << duration<<' '<<itsTimeW<<' '<<itsTimeA<<' '<<timeCF<<endl; os << " Wterm calculation "; showPerc1 (os, itsTimeW, duration); os << " fft-part "; diff --git a/CEP/Imager/LofarFT/src/LofarFTMachine.cc b/CEP/Imager/LofarFT/src/LofarFTMachine.cc index 350641910e960eb24c92e0b608d65f0b20b1ddfd..13e27b340208160f397bf35cdd831300afac8ee8 100644 --- a/CEP/Imager/LofarFT/src/LofarFTMachine.cc +++ b/CEP/Imager/LofarFT/src/LofarFTMachine.cc @@ -2019,9 +2019,11 @@ void LofarFTMachine::ComputeResiduals(VisBuffer&vb, Bool useCorrected) // The total time is the real elapsed time. // The cf and (de)gridding time is the sum of all threads, so scale // them back to real time. - double scale = itsTotalTimer.getReal() / - (itsCFTime + itsGriddingTime + itsDegriddingTime); - cout << itsTotalTimer.getReal() <<' '<< itsCFTime<<' '<<scale<<endl; + double total = itsCFTime + itsGriddingTime + itsDegriddingTime; + double scale = 1; + if (total > 0) { + scale = itsTotalTimer.getReal() / total; + } itsConvFunc->showTimings (os, duration, itsCFTime*scale); if (itsGriddingTime > 0) { os << " gridding ";