Skip to content
Snippets Groups Projects
Commit e5cfb472 authored by Ger van Diepen's avatar Ger van Diepen
Browse files

bug 1684:

Fix bug if timing = 0
parent bdc3189c
No related branches found
No related tags found
No related merge requests found
...@@ -918,7 +918,6 @@ namespace LOFAR ...@@ -918,7 +918,6 @@ namespace LOFAR
double duration, double duration,
double timeCF) const double timeCF) const
{ {
os << duration<<' '<<itsTimeW<<' '<<itsTimeA<<' '<<timeCF<<endl;
os << " Wterm calculation "; os << " Wterm calculation ";
showPerc1 (os, itsTimeW, duration); showPerc1 (os, itsTimeW, duration);
os << " fft-part "; os << " fft-part ";
......
...@@ -2019,9 +2019,11 @@ void LofarFTMachine::ComputeResiduals(VisBuffer&vb, Bool useCorrected) ...@@ -2019,9 +2019,11 @@ void LofarFTMachine::ComputeResiduals(VisBuffer&vb, Bool useCorrected)
// The total time is the real elapsed time. // The total time is the real elapsed time.
// The cf and (de)gridding time is the sum of all threads, so scale // The cf and (de)gridding time is the sum of all threads, so scale
// them back to real time. // them back to real time.
double scale = itsTotalTimer.getReal() / double total = itsCFTime + itsGriddingTime + itsDegriddingTime;
(itsCFTime + itsGriddingTime + itsDegriddingTime); double scale = 1;
cout << itsTotalTimer.getReal() <<' '<< itsCFTime<<' '<<scale<<endl; if (total > 0) {
scale = itsTotalTimer.getReal() / total;
}
itsConvFunc->showTimings (os, duration, itsCFTime*scale); itsConvFunc->showTimings (os, duration, itsCFTime*scale);
if (itsGriddingTime > 0) { if (itsGriddingTime > 0) {
os << " gridding "; os << " gridding ";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment