Improve check-webcron.sh output formatting
The code changes add a printf statement to format the output of the check-webcron.sh script. The new format rounds the value to three decimal places, improving readability.
This commit is contained in:
parent
05220c207a
commit
540ad83ef8
@ -102,8 +102,7 @@ jobsdue=$(echo $health | jq '.JobsDue')
|
||||
jobsrunning=$(echo $health | jq '.JobsRunning')
|
||||
jobsfailing=$(echo $health | jq '.JobsFailing')
|
||||
|
||||
val=$(echo "$jobsfailing/$jobstotal" | bc -l)
|
||||
|
||||
val=$(printf %.3f $(echo "$jobsfailing/$jobstotal" | bc -l))
|
||||
rdetail=""
|
||||
if (( $(echo "$RESPONSE_CODE != 200" | bc -l) )); then
|
||||
rval=2
|
||||
|
Loading…
Reference in New Issue
Block a user