|
@@ -111,8 +111,7 @@ class Statistics:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- if (not self.stats_db.get_db_exists()) or flag_recalculate_stats or self.stats_db.get_db_outdated() or \
|
|
+ if (not self.stats_db.get_db_exists()) or flag_recalculate_stats or self.stats_db.get_db_outdated():
|
|
- self.do_extra_tests:
|
|
|
|
|
|
|
|
previous_intervals = self.list_previous_interval_statistic_tables()
|
|
previous_intervals = self.list_previous_interval_statistic_tables()
|
|
|
|
|
|
@@ -156,16 +155,17 @@ class Statistics:
|
|
|
|
|
|
if not flag_print_statistics and not flag_non_verbose:
|
|
if not flag_print_statistics and not flag_non_verbose:
|
|
self.stats_summary_new_db()
|
|
self.stats_summary_new_db()
|
|
- elif intervals is not None and intervals != []:
|
|
+ elif (intervals is not None and intervals != []) or self.do_extra_tests:
|
|
self.pcap_proc = pr.pcap_processor(self.pcap_filepath, str(self.do_extra_tests), Util.RESOURCE_DIR,
|
|
self.pcap_proc = pr.pcap_processor(self.pcap_filepath, str(self.do_extra_tests), Util.RESOURCE_DIR,
|
|
self.path_db)
|
|
self.path_db)
|
|
|
|
|
|
|
|
|
|
previous_intervals = self.list_previous_interval_statistic_tables(output=False)
|
|
previous_intervals = self.list_previous_interval_statistic_tables(output=False)
|
|
|
|
|
|
- for interval in intervals:
|
|
+ if not self.do_extra_tests:
|
|
- if interval in previous_intervals:
|
|
+ for interval in intervals:
|
|
- intervals.remove(interval)
|
|
+ if interval in previous_intervals:
|
|
|
|
+ intervals.remove(interval)
|
|
|
|
|
|
self.pcap_proc.collect_statistics(intervals)
|
|
self.pcap_proc.collect_statistics(intervals)
|
|
self.pcap_proc.write_new_interval_statistics(self.path_db, intervals)
|
|
self.pcap_proc.write_new_interval_statistics(self.path_db, intervals)
|