src/devices/wimax/simple-ofdm-wimax-phy.cc
changeset 6282 533be42b3c7f
parent 6199 51d002229ef7
child 6330 af9c574246d5
--- a/src/devices/wimax/simple-ofdm-wimax-phy.cc	Wed Apr 28 16:21:23 2010 -0400
+++ b/src/devices/wimax/simple-ofdm-wimax-phy.cc	Fri Apr 30 13:10:23 2010 -0400
@@ -333,7 +333,7 @@
 
   UniformVariable URNG;
   uint8_t drop = 0;
-  double Nwb = -114 + m_noiseFigure + 10 * log (GetBandwidth () / 1000000000) / 2.303;
+  double Nwb = -114 + m_noiseFigure + 10 * log (GetBandwidth () / 1000000000.0) / 2.303;
   double SNR = rxPower - Nwb;
 
   SNRToBlockErrorRateRecord * record = m_snrToBlockErrorRateManager->GetSNRToBlockErrorRateRecord (SNR, modulationType);