|
|
|
@ -355,8 +355,8 @@ void PropertiesWidget::loadDynamicData() {
@@ -355,8 +355,8 @@ void PropertiesWidget::loadDynamicData() {
|
|
|
|
|
showPiecesAvailability(true); |
|
|
|
|
std::vector<int> avail; |
|
|
|
|
h.piece_availability(avail); |
|
|
|
|
double avail_average = pieces_availability->setAvailability(avail); |
|
|
|
|
avail_average_lbl->setText(QString::number(avail_average, 'f', 1)); |
|
|
|
|
pieces_availability->setAvailability(avail); |
|
|
|
|
avail_average_lbl->setText(QString::number(h.get_torrent_handle().status().distributed_copies, 'f', 1)); |
|
|
|
|
} else { |
|
|
|
|
showPiecesAvailability(false); |
|
|
|
|
} |
|
|
|
|