@@ -186,16 +186,16 @@ void TrafficGraphDataTests::averageBandwidthTest()
186
186
}
187
187
QCOMPARE (trafficGraphData.getCurrentRangeQueueWithAverageBandwidth ().size (), TrafficGraphData::DESIRED_DATA_SAMPLES);
188
188
for (auto & sample : trafficGraphData.getCurrentRangeQueueWithAverageBandwidth ()){
189
- QCOMPARE (sample.in , 1.0 );
190
- QCOMPARE (sample.out , 1.0 );
189
+ QCOMPARE (sample.in , 1 .0f );
190
+ QCOMPARE (sample.out , 1 .0f );
191
191
}
192
192
193
193
trafficGraphData.switchRange (TrafficGraphData::Range_10m);
194
194
195
195
QCOMPARE (trafficGraphData.getCurrentRangeQueueWithAverageBandwidth ().size (), TrafficGraphData::DESIRED_DATA_SAMPLES / 2 );
196
196
for (auto & sample : trafficGraphData.getCurrentRangeQueueWithAverageBandwidth ()){
197
- QCOMPARE (sample.in , 1.0 );
198
- QCOMPARE (sample.out , 1.0 );
197
+ QCOMPARE (sample.in , 1 .0f );
198
+ QCOMPARE (sample.out , 1 .0f );
199
199
}
200
200
}
201
201
@@ -217,7 +217,7 @@ void TrafficGraphDataTests::averageBandwidthEvery2EmptyTest()
217
217
218
218
QCOMPARE (trafficGraphData.getCurrentRangeQueueWithAverageBandwidth ().size (), TrafficGraphData::DESIRED_DATA_SAMPLES / 2 );
219
219
for (auto & sample : trafficGraphData.getCurrentRangeQueueWithAverageBandwidth ()){
220
- QCOMPARE (sample.in , 0.5 );
221
- QCOMPARE (sample.out , 0.5 );
220
+ QCOMPARE (sample.in , 0 .5f );
221
+ QCOMPARE (sample.out , 0 .5f );
222
222
}
223
223
}
0 commit comments