Skip to content

Commit

Permalink
Fix top parse
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-veit committed Aug 6, 2024
1 parent 3a5a8be commit f6a1c78
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
Change Log
==========

5.4.3
=====

* Fix bug when parsing output from top command


5.4.2
=====

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tibanna"
version = "5.4.2"
version = "5.4.3"
description = "Tibanna runs portable pipelines (in CWL/WDL) on the AWS Cloud."
authors = ["4DN-DCIC Team <support@4dnucleome.org>"]
license = "MIT"
Expand Down
4 changes: 3 additions & 1 deletion tibanna/top.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ def parse_contents(self, contents):
is_in_table = False
for line in contents.splitlines():
if line.startswith('Timestamp:'):
timestamp = line.split()[1]
line_split = line.split()
if len(line_split) > 1:
timestamp = line_split[1]
continue
if line.lstrip().startswith('PID'):
is_in_table = True
Expand Down

0 comments on commit f6a1c78

Please sign in to comment.