diff --git a/pycona/metrics.py b/pycona/metrics.py index f29c2a4..71515a6 100644 --- a/pycona/metrics.py +++ b/pycona/metrics.py @@ -111,14 +111,14 @@ def increase_queries_size(self, amount): """ self.total_size_queries += amount - def aggreagate_max_waiting_time(self, max2): + def aggreagate_max_waiting_time(self, t): """ Aggregate the maximum waiting time. - :param max2: The new waiting time to compare with the current maximum. + :param t: The new waiting time to compare with the current maximum. """ - if self.max_waiting_time < max2: - self.max_waiting_time = max2 + if self.max_waiting_time < t: + self.max_waiting_time = t def increase_recommendation_queries_count(self, amount=1): """ @@ -252,7 +252,7 @@ def print_short_statistics(self): results_df = pd.DataFrame([self.metrics_short_dict]) print(results_df.to_string(index=False)) except ImportError: - print(self.metrics_dict) + print(self.metrics_short_dict) @property def short_statistics(self): @@ -264,7 +264,7 @@ def short_statistics(self): results_df = pd.DataFrame([self.metrics_short_dict]) return results_df except ImportError: - return self.metrics_dict + return self.metrics_short_dict def write_to_file(self, filename): """