Commit d5849f29 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

fpm: eliminate division by 0

parent 0e4c3e09
......@@ -12,6 +12,7 @@
# 2022-02-11 v0.5 <axel.hahn@iml.unibe.ch> show running workers in 1st line
# 2022-04-01 v0.6 <axel.hahn@iml.unibe.ch> use wget default params; shell fixes
# 2022-05-09 v0.7 <axel.hahn@iml.unibe.ch> use wget default params
# 2022-07-08 v0.8 <axel.hahn@iml.unibe.ch> eliminate division by 0
# ======================================================================
. $(dirname $0)/inc_pluginfunctions
......@@ -166,7 +167,8 @@ typeset -i iSlowTotal=$( _getvalue "slow requests")
typeset -i iSlow=$( ph.perfdeltaspeed "fpm-slow" $iSlowTotal $sDeltaunit )
typeset -i iMaxChilds=$( _getvalue "max children reached")
typeset -i iSlowPercent=$iSlow*100/$iSpeed
typeset -i iSlowPercent=0
test $iSpeed -gt 0 && iSlowPercent=$iSlow*100/$iSpeed
typeset -i iWorkerRunning=$( _getWorkerOfState "Running" | wc -l )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment