Fix torrent availability computation

This commit is contained in:
Christophe Dumez
2010-05-31 14:25:12 +00:00
parent 4fd10bc5f5
commit f61bccf700
2 changed files with 3 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ public:
setFixedHeight(BAR_HEIGHT);
}
double setAvailability(const std::vector<int>& avail) {
void setAvailability(const std::vector<int>& avail) {
double average = 0;
if(avail.empty()) {
// Empty bar
@@ -95,7 +95,6 @@ public:
}
}
update();
return average;
}
void clear() {