]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Fix percent when too high
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 7 Nov 2008 10:35:21 +0000 (10:35 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 7 Nov 2008 10:35:21 +0000 (10:35 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8004 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/html/bweb.js

index 3923662da9edfedb0440b70f0cf6ffde772eab3c..43803a9c44e16dc0b90c43437a69e0ecbacc7901 100644 (file)
@@ -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";