#79 Statistics summary

已合併
carlos.garcia 7 年之前 將 6 次代碼提交從 stefan.schmidt/stats_summary合併至 SPIN/master

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.
該合併請求已經成功合併!
登入 才能加入這對話。
未選擇標籤
Bug
未選擇里程碑
未指派成員
1 參與者
正在加載...
取消
保存
尚未有任何內容