Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Feb 19, 2025
1 parent 821117b commit d140a1d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/nanosaur/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ def format_time_delta(delta):
if hours > 0:
return f"{hours} hours ago"
minutes, _ = divmod(remainder, 60)
if minutes > 0:
return f"{minutes} minutes ago"
return "just now"
return f"{minutes} minutes ago" if minutes > 0 else "just now"


def docker_info(params, verbose):
Expand Down

0 comments on commit d140a1d

Please sign in to comment.