Skip to content

Commit 20824f7

Browse files
authored
Update mysqlmonitor.sh
1 parent 4025b5a commit 20824f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mysqlmonitor.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,9 @@ while true; do
403403
is_low_mem=$(awk "BEGIN {print ($avail_mem_percentage < 10)}")
404404

405405
if (( is_low_mem )); then
406-
mem_info="Total ${mem_total_gb} GB, Used: ${mem_used_gb} GB, Free: ${mem_free_gb} GB, Available: ${mem_avail_gb} GB \033[0;31m(Warning!: ${avail_mem_percentage}%%)\033[0m"
406+
mem_info="Total: ${mem_total_gb} GB, Used: ${mem_used_gb} GB, Free: ${mem_free_gb} GB, Available: ${mem_avail_gb} GB \033[0;31m(Warning!: ${avail_mem_percentage}%%)\033[0m"
407407
else
408-
mem_info="Total ${mem_total_gb} GB, Used: ${mem_used_gb} GB, Free: ${mem_free_gb} GB, Available: ${mem_avail_gb} GB"
408+
mem_info="Total: ${mem_total_gb} GB, Used: ${mem_used_gb} GB, Free: ${mem_free_gb} GB, Available: ${mem_avail_gb} GB"
409409
fi
410410
# Append mem_info with an empty line before it
411411
output+=$'\n'"${mem_info}"$'\n'

0 commit comments

Comments
 (0)