Skip to content

Commit

Permalink
changed bc scale from 10 to 0 to get back integer
Browse files Browse the repository at this point in the history
curl is complaining

./check_mailbox.sh -H imaps://imap.googlemail.com -C "$IMAPCON" -S -n 0 -N 5
++ bc
+ maxwait=5.0000000000
+++ curl --url imaps://foo.bar -X 'EXAMINE INBOX' --user foo@bar:password -s --max-time 5.0000000000 --ssl --verbose
curl: option --max-time: expected a proper numerical parameter
  • Loading branch information
ni-kweutzing committed Jun 9, 2021
1 parent 53e0a27 commit dc71a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_mailbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ else
fi


maxwait=$(bc <<< "scale = 10; ($critical+1500) / 1000")
maxwait=$(bc <<< "scale = 0; ($critical+1500) / 1000")

# Build the arg parameters
insecurearg=""
Expand Down

0 comments on commit dc71a7e

Please sign in to comment.