Skip to content

Commit

Permalink
Add missing f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
tcompa committed Dec 30, 2024
1 parent 413ac76 commit 9ea1c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fractal_healthcheck/checks/implementations.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def memory_usage() -> CheckResult:
if f != "percent":
mem_usage_human[f] = psutil._common.bytes2human(getattr(mem_usage, f))
else:
mem_usage_human[f] = "{getattr(mem_usage, f)}%"
mem_usage_human[f] = f"{getattr(mem_usage, f)}%"
return CheckResult(log=json.dumps(mem_usage_human, indent=2))
except Exception as e:
return failing_result(e)

0 comments on commit 9ea1c34

Please sign in to comment.