JFCalibrationPerfTest: Fix

This commit is contained in:
2023-04-15 19:31:23 +02:00
parent 1800538e54
commit dc02d1d5d9

View File

@@ -169,7 +169,7 @@ void test_packet_processing(Logger &logger) {
for (int frame = 0; frame < nframes; frame++) {
for (int m = 0; m < nmodules; m++) {
for (int p = 0; p < 128; p++) {
packets.at((frame * 128 + p) * nmodules + m).ipv4_header_sour_ip = (m * 2) << 24;
packets.at((frame * 128 + p) * nmodules + m).jf.xCoord = (m * 2);
packets.at((frame * 128 + p) * nmodules + m).jf.packetnum = p;
packets.at((frame * 128 + p) * nmodules + m).jf.framenum = frame + 1;
memcpy(packets.at((frame * 128 + p) * nmodules + m).jf.data, input.data() + 4096 * p, 4096 * sizeof(uint16_t));
@@ -189,7 +189,7 @@ void test_packet_processing(Logger &logger) {
.handle = i
});
for (auto &packet: packets)
process.ProcessPacket(&packet.jf, packet.ipv4_header_sour_ip);
process.ProcessPacket(&packet.jf);
}
auto end_time = std::chrono::system_clock::now();
auto elapsed = std::chrono::duration_cast<std::chrono::microseconds>(end_time - start_time);