Skip to content

Commit

Permalink
Make timestamps in dmesg output human readable
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Jan 9, 2025
1 parent 383d645 commit e32c0ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/_ert/forward_model_runner/forward_model_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ def killed_by_oom(pids: set[int]) -> bool:
return False

try:
dmesg_result = run("dmesg", capture_output=True, check=False)
dmesg_result = run(
["dmesg", "-T", "--time-format=iso"], capture_output=True, check=False
)
if dmesg_result.returncode != 0:
logger.warning(
"Could not use dmesg to check for OOM kill, "
Expand Down

0 comments on commit e32c0ad

Please sign in to comment.