#79 Statistics summary

ادغام شده
carlos.garcia 6 کامیت ادغام شده از stefan.schmidt/stats_summary به SPIN/master 7 سال پیش

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.
درخواست pull request با موفقیت ادغام شد!
برای پیوستن به گفتگو، وارد شودید.
بدون برچسب
Bug
بدون نقطه عطف
بدون مسئول رسیدگی
1 مشارکت کننده
درحال بارگذاری...
لغو
ذخيره
هنوز محتوایی ایجاد نشده.