From a359343efe75beb9d70ab99d8d2c782c9d9d45d9 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 10 Mar 2008 15:43:35 +0000 Subject: [PATCH] ebl Use lineal regression on job progress bar git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6576 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/html/bweb.js | 4 +- gui/bweb/lang/en/tpl/client_job_status.tpl | 4 +- gui/bweb/lang/es/tpl/client_job_status.tpl | 6 +- gui/bweb/lang/fr/tpl/client_job_status.tpl | 6 +- gui/bweb/lib/Bweb.pm | 52 ++-- gui/bweb/po/bweb.pot | 252 +++++++++++++------ gui/bweb/po/es.po | 276 ++++++++++++++------- gui/bweb/po/fr.po | 274 +++++++++++++------- gui/bweb/technotes-2.3 | 3 + gui/bweb/tpl/client_job_status.tpl | 4 +- 10 files changed, 602 insertions(+), 279 deletions(-) diff --git a/gui/bweb/html/bweb.js b/gui/bweb/html/bweb.js index c42fc3e626..3923662da9 100644 --- a/gui/bweb/html/bweb.js +++ b/gui/bweb/html/bweb.js @@ -230,12 +230,12 @@ function percent_display(hash_values, parent) return parent; } -function percent_finish(value, parent) +function percent_finish(value, corr, parent) { var type; var nb = parseInt(value*300/100, 10); - parent.title = parseInt(value*100,10)/100 + "% finished (approximate)"; + parent.title = parseInt(value*100,10)/100 + "% finished (approximate " + (corr).toFixed(2) + ")" ; var img=document.createElement('img'); img.className="pSliceFinished"; diff --git a/gui/bweb/lang/en/tpl/client_job_status.tpl b/gui/bweb/lang/en/tpl/client_job_status.tpl index 4955bef96f..9e7d8ee722 100644 --- a/gui/bweb/lang/en/tpl/client_job_status.tpl +++ b/gui/bweb/lang/en/tpl/client_job_status.tpl @@ -46,10 +46,10 @@ diff --git a/gui/bweb/lang/es/tpl/client_job_status.tpl b/gui/bweb/lang/es/tpl/client_job_status.tpl index 6064d4f383..c47d7aeed4 100644 --- a/gui/bweb/lang/es/tpl/client_job_status.tpl +++ b/gui/bweb/lang/es/tpl/client_job_status.tpl @@ -1,7 +1,7 @@

- Job ejecutándose on + Job ejecutándose on

@@ -46,10 +46,10 @@ diff --git a/gui/bweb/lang/fr/tpl/client_job_status.tpl b/gui/bweb/lang/fr/tpl/client_job_status.tpl index d9b6d5b1d9..c6237e64a0 100644 --- a/gui/bweb/lang/fr/tpl/client_job_status.tpl +++ b/gui/bweb/lang/fr/tpl/client_job_status.tpl @@ -35,7 +35,7 @@
+> Rafraîchir