summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-01-06 06:38:01 +0100
committerJakob Borg <jakob@nym.se>2014-01-06 06:38:01 +0100
commit271d7eedc43f89b6f2d936acb9daf7f561328821 (patch)
treef60ebad3ea3b7dc013375a2d5321e1d25a06ca8b /gui
parentab8482a4240c96b9722b9903222524683ef4941a (diff)
Better progress bar calculationv0.3.1
Diffstat (limited to 'gui')
-rw-r--r--gui/index.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/gui/index.html b/gui/index.html
index 1c1e77aa3b..72900d4fce 100644
--- a/gui/index.html
+++ b/gui/index.html
@@ -37,9 +37,12 @@ body {
<div class="col-md-12">
<h2>Synchronization</h2>
<div class="progress">
- <div class="progress-bar" ng-class="{'progress-bar-success': model.needBytes === 0, 'progress-bar-info': model.needBytes !== 0}" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: {{100 * model.localFiles / (model.localFiles + model.needFiles) | number:2}}%;"></div>
+ <div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"
+ ng-class="{'progress-bar-success': model.needBytes === 0, 'progress-bar-info': model.needBytes !== 0}"
+ style="width: {{100 * model.inSyncBytes / model.globalBytes | number:2}}%;">
+ {{100 * model.inSyncBytes / model.globalBytes | number:0}}%
+ </div>
</div>
- <p class="pull-right">{{100 * model.localFiles / (model.localFiles + model.needFiles) | number:2}}%</p>
<p ng-show="model.needBytes > 0">Need {{model.needFiles | alwaysNumber}} files, {{model.needBytes | binary}}B</p>
</div>
</div>