(trunk web) don't invert the progress bar

This commit is contained in:
Kevin Glowacz 2009-07-30 19:03:37 +00:00
parent c33f27c06c
commit 1339a6df4c
1 changed files with 5 additions and 4 deletions

View File

@ -468,12 +468,13 @@ Torrent.prototype =
var seedRatioRatio = this._upload_ratio / this.seedRatioLimit(); var seedRatioRatio = this._upload_ratio / this.seedRatioLimit();
var seedRatioPercent = Math.round( seedRatioRatio * 100 * MaxBarWidth ) / 100; var seedRatioPercent = Math.round( seedRatioRatio * 100 * MaxBarWidth ) / 100;
// Set progress to percent seeded
root._progress_complete_container.style.width = seedRatioPercent + '%';
// Update the 'incomplete' bar
root._progress_incomplete_container.className = 'torrent_progress_bar incomplete seeding' root._progress_incomplete_container.className = 'torrent_progress_bar incomplete seeding'
root._progress_incomplete_container.style.display = 'block'; root._progress_incomplete_container.style.display = 'block';
root._progress_incomplete_container.style.width = seedRatioPercent + '%'; root._progress_incomplete_container.style.width = MaxBarWidth - seedRatioPercent + '%';
// Set progress to maximum
root._progress_complete_container.style.width = MaxBarWidth - seedRatioPercent + '%';
} }
else else
{ {