From: Eric Bollengier Date: Fri, 7 Nov 2008 17:10:44 +0000 (+0000) Subject: ebl Fix bad statistics X-Git-Tag: Release-3.0.0~610 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c68c72d5181bb4ff98e542382714081cbdf16d16;p=bacula%2Fbacula ebl Fix bad statistics git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8014 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/lang/en/tpl/display_stats.tpl b/gui/bweb/lang/en/tpl/display_stats.tpl index adf899a8ad..60622295ce 100644 --- a/gui/bweb/lang/en/tpl/display_stats.tpl +++ b/gui/bweb/lang/en/tpl/display_stats.tpl @@ -17,16 +17,16 @@ var data = new Array(); var nb_job=0; var nb_err=0; -var t_ok = (nb_job - nb_err)/(nb_job + 0.0001)*100; - +var t_ok = Math.abs((nb_job - nb_err)/(nb_job + nb_err + 0.0001)*100); +var nb_byte = 0; data.push( new Array( "", nb_job, nb_err, t_ok.toFixed(2), "", - human_size(), - , + human_size(nb_byte), + nb_byte, "" ) ) ; diff --git a/gui/bweb/lang/es/tpl/display_stats.tpl b/gui/bweb/lang/es/tpl/display_stats.tpl index a15aecc05d..da9a929052 100644 --- a/gui/bweb/lang/es/tpl/display_stats.tpl +++ b/gui/bweb/lang/es/tpl/display_stats.tpl @@ -17,16 +17,16 @@ var data = new Array(); var nb_job=0; var nb_err=0; -var t_ok = (nb_job - nb_err)/(nb_job + 0.0001)*100; - +var t_ok = Math.abs((nb_job - nb_err)/(nb_job + nb_err + 0.0001)*100); +var nb_byte = 0; data.push( new Array( "", nb_job, nb_err, t_ok.toFixed(2), "", - human_size(), - , + human_size(nb_byte), + nb_byte, "" ) ) ; diff --git a/gui/bweb/lang/fr/tpl/display_stats.tpl b/gui/bweb/lang/fr/tpl/display_stats.tpl index 185838eb75..65fd1293d5 100644 --- a/gui/bweb/lang/fr/tpl/display_stats.tpl +++ b/gui/bweb/lang/fr/tpl/display_stats.tpl @@ -17,16 +17,16 @@ var data = new Array(); var nb_job=0; var nb_err=0; -var t_ok = (nb_job - nb_err)/(nb_job + 0.0001)*100; - +var t_ok = Math.abs((nb_job - nb_err)/(nb_job + nb_err + 0.0001)*100); +var nb_byte = 0; data.push( new Array( "", nb_job, nb_err, t_ok.toFixed(2), "", - human_size(), - , + human_size(nb_byte), + nb_byte, "" ) ) ; diff --git a/gui/bweb/tpl/display_stats.tpl b/gui/bweb/tpl/display_stats.tpl index cef66e9e4f..0de7d60c97 100644 --- a/gui/bweb/tpl/display_stats.tpl +++ b/gui/bweb/tpl/display_stats.tpl @@ -17,16 +17,16 @@ var data = new Array(); var nb_job=0; var nb_err=0; -var t_ok = (nb_job - nb_err)/(nb_job + 0.0001)*100; - +var t_ok = Math.abs((nb_job - nb_err)/(nb_job + nb_err + 0.0001)*100); +var nb_byte = 0; data.push( new Array( "", nb_job, nb_err, t_ok.toFixed(2), "", - human_size(), - , + human_size(nb_byte), + nb_byte, "" ) ) ;