diff --git a/libraries/networking/src/BandwidthRecorder.cpp b/libraries/networking/src/BandwidthRecorder.cpp index d74236a521..f03aaa4150 100644 --- a/libraries/networking/src/BandwidthRecorder.cpp +++ b/libraries/networking/src/BandwidthRecorder.cpp @@ -21,7 +21,7 @@ BandwidthRecorder::Channel::Channel() { float BandwidthRecorder::Channel::getAverageInputPacketsPerSecond() { float delt = _input.getEventDeltaAverage(); - if (delt > 0.) { + if (delt > 0.0f) { return (1.0 / delt); } return 0.0f; @@ -29,7 +29,7 @@ float BandwidthRecorder::Channel::getAverageInputPacketsPerSecond() { float BandwidthRecorder::Channel::getAverageOutputPacketsPerSecond() { float delt = _input.getEventDeltaAverage(); - if (delt > 0.) { + if (delt > 0.0f) { return (1.0 / _output.getEventDeltaAverage()); } return 0.0f;