#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 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。