diff --git a/.graph_rsnap_runtime.py.swp b/.graph_rsnap_runtime.py.swp new file mode 100644 index 0000000..e441bcb Binary files /dev/null and b/.graph_rsnap_runtime.py.swp differ diff --git a/graph_rsnap_runtime.py b/graph_rsnap_runtime.py index 645f06d..4e5dfaa 100755 --- a/graph_rsnap_runtime.py +++ b/graph_rsnap_runtime.py @@ -160,7 +160,7 @@ def get_job_times(self): def parse_job_durations(self): self.graph_list = [] - log_name = self.log_path.split('/')[-1].strip(".log") + log_name = self.log_path.split('/')[-1].replace(".log", "") if len(self.start_times) == (len(self.end_times) + 1): del self.start_times[-1] logger.debug("Lenght of Rsnap start "