mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
coding standard
This commit is contained in:
parent
3fdf05ff77
commit
38162380ad
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue