#79 Statistics summary

Merged
carlos.garcia merged 6 commits from stefan.schmidt/stats_summary into SPIN/master 6 years ago

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.
This pull request has been merged successfully!
Sign in to join this conversation.
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.