Skip to content
Snippets Groups Projects

fpm: eliminate division by 0

Merged Hahn Axel (hahn) requested to merge 5419-update-check-packages2install into master
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -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 )
Loading