Skip to content

Commit 673e161

Browse files
authored
fix trafficgraphdatatests for qt4 (#1699)
1 parent 304b886 commit 673e161

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/qt/test/trafficgraphdatatests.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,16 @@ void TrafficGraphDataTests::averageBandwidthTest()
186186
}
187187
QCOMPARE(trafficGraphData.getCurrentRangeQueueWithAverageBandwidth().size(), TrafficGraphData::DESIRED_DATA_SAMPLES);
188188
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);
191191
}
192192

193193
trafficGraphData.switchRange(TrafficGraphData::Range_10m);
194194

195195
QCOMPARE(trafficGraphData.getCurrentRangeQueueWithAverageBandwidth().size(), TrafficGraphData::DESIRED_DATA_SAMPLES / 2);
196196
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);
199199
}
200200
}
201201

@@ -217,7 +217,7 @@ void TrafficGraphDataTests::averageBandwidthEvery2EmptyTest()
217217

218218
QCOMPARE(trafficGraphData.getCurrentRangeQueueWithAverageBandwidth().size(), TrafficGraphData::DESIRED_DATA_SAMPLES / 2);
219219
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);
222222
}
223223
}

0 commit comments

Comments
 (0)