Skip to content

Commit

Permalink
rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldesai1 committed Aug 3, 2024
1 parent 574a7af commit 74d035b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion latch_cli/nextflow/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def nextflow_runtime(pvc_name: str, {param_signature}) -> None:
size = int(result.stdout.split()[0])
report_nextflow_used_storage(size)
print(f"Done. Workdir size: {{size / 1024 / 1024 / 1024}} GiB")
print(f"Done. Workdir size: {{round(size / 1024 / 1024 / 1024, 2)}} GiB")
except subprocess.TimeoutExpired:
print("Failed to compute storage size: Operation timed out after 5 minutes.")
except subprocess.CalledProcessError as e:
Expand Down

0 comments on commit 74d035b

Please sign in to comment.