Skip to content

Commit

Permalink
extend container name width
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye committed Mar 2, 2024
1 parent 940c563 commit be9637f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telebot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def dockerUsage():
reply = []

# Iterate over containers and retrieve resource usage
reply.append(f"{'Name':<10} {'CPU':<5} {'Memory':<5}")
reply.append(f"{'Name':<12} {'CPU':<5} {'Memory':<5}")

stats1 = dict()
stats2 = dict()
Expand Down Expand Up @@ -84,7 +84,7 @@ def dockerUsage():
total_memory_usage += memory_usage

reply.append(
f"{container_name:<10} {cpu_percentage:<5.2f}% {memory_usage_mb:<5.1f} MB"
f"{container_name:<12} {cpu_percentage:<5.2f}% {memory_usage_mb:<5.1f} MB"
)

# Total usage
Expand Down

0 comments on commit be9637f

Please sign in to comment.