From 916efa7f30ec742494d595860b1e7848c7755b0f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20J=C3=BCrges?= <jurges@astron.nl>
Date: Thu, 31 Jan 2019 15:21:43 +0000
Subject: [PATCH] SW-561:  Convert the sample window first to a double before a
 division

I am afraid that the 0Hz central frequency can be attributed to an integer
divided by a double.  This should at least remove the uncertainty.
---
 RTCP/Cobalt/OutputProc/src/TBB_Dipole.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/RTCP/Cobalt/OutputProc/src/TBB_Dipole.cc b/RTCP/Cobalt/OutputProc/src/TBB_Dipole.cc
index 3ee4dfcc9bd..657b0ae8cc0 100644
--- a/RTCP/Cobalt/OutputProc/src/TBB_Dipole.cc
+++ b/RTCP/Cobalt/OutputProc/src/TBB_Dipole.cc
@@ -397,7 +397,7 @@ namespace LOFAR
                 currentSubBand.centralFrequency;
             currentSubBand.dataSet->centralFrequencyUnit().value = "Hz";
             currentSubBand.dataSet->timeResolution().value =
-                SPECTRAL_TRANSFORM_SIZE /
+                static_cast< double >(SPECTRAL_TRANSFORM_SIZE) /
                     (frame.header.sampleFreq * 1000000.0);
             currentSubBand.dataSet->timeResolutionUnit().value =
                 "s";
-- 
GitLab