idofront / TrafficPlayer

TrafficPlayer is a Linux application to recreate network traffic. It replays pcap files to simulate conditions. Users can specify a NIC for better control. TrafficPlayer allows speed adjustment, offering flexibility in testing behaviors. It is ideal for evaluating network performance and reliability.
MIT License
1 stars 0 forks source link

Report Interval が 0 のときは Reporter を無効化する #12

Closed idofront closed 4 days ago

idofront commented 4 days ago

現在 --report-interval 0 を指定すると wait なしでレポートされてしまう.

[2024-11-29 00:31:54.478] [info] [Report] Total: 0 bytes, Throughput: -nan Kbps, -nan packets/s
[2024-11-29 00:31:54.478] [info] [Report] Total: 0 bytes, Throughput: -nan Kbps, -nan packets/s
[2024-11-29 00:31:54.478] [info] [Report] Total: 0 bytes, Throughput: -nan Kbps, -nan packets/s
[2024-11-29 00:31:54.478] [info] [Report] Total: 74 bytes, Throughput: inf Kbps, inf packets/s
[2024-11-29 00:31:54.478] [info] [Report] Total: 0 bytes, Throughput: -nan Kbps, -nan packets/s
[2024-11-29 00:31:54.478] [info] [Report] Total: 129 bytes, Throughput: inf Kbps, inf packets/s

また,このとき -naninf が出力される.