#79 Statistics summary

Đã hợp nhất
carlos.garcia đã nhập 6 commit từ stefan.schmidt/stats_summary vào [3]s 7 năm trước cách đây

This introduces the requested summary of statistics when appropriate. Right now there are two different summaries with different stats that are printed in different scenarios.

Whenever a new database is created, either because of the recalculate flag or simply because one does not exist yet, a summary of the most important stats relevant to the pcap is printed out. This includes the total packet count, the amount of recognized and unrecognized packets, as well as their respective ratios, the last occurrence of a pdu and the capture duration of the pcap.

The other scenario is of course whenever an attack is injected. In this case the relevant statistics that are printed are the total packet count (of the new pcap) the amount of added packets through the attack, the share of added packets in relation to the total amount of packets of the result pcap and the capture duration. As it stands right now this summary is printed after every attack, meaning that when injecting multiple attacks at once there will be a summary after each attack with the amount of added packets being updated to be the current total of added packets across all attacks.

To reduce the terminal clutter introduced by these changes there is a new CLI argument -V / --non-verbose that disables all the previously listed summaries. The -s flag has also been updated to include all the pdu statistics part of the summary.

This introduces the requested summary of statistics when appropriate. Right now there are two different summaries with different stats that are printed in different scenarios. Whenever a new database is created, either because of the recalculate flag or simply because one does not exist yet, a summary of the most important stats relevant to the pcap is printed out. This includes the total packet count, the amount of recognized and unrecognized packets, as well as their respective ratios, the last occurrence of a pdu and the capture duration of the pcap. The other scenario is of course whenever an attack is injected. In this case the relevant statistics that are printed are the total packet count (of the new pcap) the amount of added packets through the attack, the share of added packets in relation to the total amount of packets of the result pcap and the capture duration. As it stands right now this summary is printed after every attack, meaning that when injecting multiple attacks at once there will be a summary after each attack with the amount of added packets being updated to be the current total of added packets across all attacks. To reduce the terminal clutter introduced by these changes there is a new CLI argument -V / --non-verbose that disables all the previously listed summaries. The -s flag has also been updated to include all the pdu statistics part of the summary.
Yêu cầu kéo này đã được sáp nhập thành công!
Đăng nhập để tham gia bình luận.
Không có nhãn
Bug
Không có Milestone
Không có người được phân công
1 tham gia
Đang tải...
Hủy bỏ
Lưu
Ở đây vẫn chưa có nội dung nào.