From: Eric Bollengier Date: Fri, 7 Nov 2008 10:35:21 +0000 (+0000) Subject: ebl Fix percent when too high X-Git-Tag: Release-3.0.0~619 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=861212a312da428ebb8ec6f8549efce10d6d852e;p=bacula%2Fbacula ebl Fix percent when too high git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8004 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/html/bweb.js b/gui/bweb/html/bweb.js index 3923662da9..43803a9c44 100644 --- a/gui/bweb/html/bweb.js +++ b/gui/bweb/html/bweb.js @@ -235,8 +235,11 @@ function percent_finish(value, corr, parent) var type; var nb = parseInt(value*300/100, 10); - parent.title = parseInt(value*100,10)/100 + "% finished (approximate " + (corr).toFixed(2) + ")" ; - + var nbp = parseInt(value*100,10)/100; + if (nbp > 500) { + return; + } + parent.title = nbp + "% finished (approximate " + (corr).toFixed(2) + ")" ; var img=document.createElement('img'); img.className="pSliceFinished"; img.src="/bweb/pix.png";