Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LobbyLobster committed Apr 29, 2024
1 parent 3886d16 commit 464d4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monocloud/monocloud-health.sh
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ check_system_load_and_ram() {
alarm_check_down "load" "$message" "system"
fi

ram_u=$(echo "$ram_usage" | awk -F ',' '{print $1}')
[[ $is_old == 0 ]] && ram_u=$(echo "$ram_usage" | awk -F '.' '{print $1}') || ram_u=$(echo "$ram_usage" | awk -F ',' '{print $1}')
if [[ $ram_u -lt $RAM_LIMIT ]]; then
message="RAM usage limit went below $RAM_LIMIT (Current: $ram_usage%)"
alarm_check_up "ram" "$message" "system"
Expand Down

0 comments on commit 464d4d1

Please sign in to comment.