Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions check_rancher2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1216,8 +1216,8 @@ for entry in ${cert_expiry[*]}; do
let diff=(${rightnow}-${expiry})/86400
cert_expired[${i}]="${cert_names[${i}]} expired ${diff} days ago -"
elif [[ ${warning} -gt ${expiry} ]]; then
let diff=(${warning}-${expiry})/86400
#echo "${cert_names[${i}]} will expire in ${diff} days -" # Enable for debugging
let diff=(${expiry}-${rightnow})/86400
#echo "${cert_names[${i}]} will expire in ${diff} days -" # Enable for debugging
cert_warning[${i}]="${cert_names[${i}]} will expire in ${diff} days -"
fi
let i++
Expand Down