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