From c68c72d5181bb4ff98e542382714081cbdf16d16 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 7 Nov 2008 17:10:44 +0000 Subject: [PATCH] ebl Fix bad statistics git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8014 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/lang/en/tpl/display_stats.tpl | 8 ++++---- gui/bweb/lang/es/tpl/display_stats.tpl | 8 ++++---- gui/bweb/lang/fr/tpl/display_stats.tpl | 8 ++++---- gui/bweb/tpl/display_stats.tpl | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) 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, "" ) ) ; -- 2.39.5