From 861212a312da428ebb8ec6f8549efce10d6d852e Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 7 Nov 2008 10:35:21 +0000 Subject: [PATCH] ebl Fix percent when too high git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8004 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/html/bweb.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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"; -- 2.39.5