mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
Merge pull request #1325 from Gelmir/stats_percent
Fix missing percent sign in stats dialog
This commit is contained in:
commit
0a3dadf3fb
@ -91,12 +91,12 @@ void StatsDialog::updateUI() {
|
|||||||
peers += (*iBegin).status().num_peers;
|
peers += (*iBegin).status().num_peers;
|
||||||
ui->labelWriteStarve->setText(
|
ui->labelWriteStarve->setText(
|
||||||
( ss.disk_write_queue > 0 && peers > 0 ) ?
|
( ss.disk_write_queue > 0 && peers > 0 ) ?
|
||||||
misc::accurateDoubleToString(100. * (qreal)ss.disk_write_queue / (qreal)peers, 2) :
|
misc::accurateDoubleToString(100. * (qreal)ss.disk_write_queue / (qreal)peers, 2) + "%" :
|
||||||
QString("0\%")
|
QString("0\%")
|
||||||
);
|
);
|
||||||
ui->labelReadStarve->setText(
|
ui->labelReadStarve->setText(
|
||||||
( ss.disk_read_queue > 0 && peers > 0 ) ?
|
( ss.disk_read_queue > 0 && peers > 0 ) ?
|
||||||
misc::accurateDoubleToString(100. * (qreal)ss.disk_read_queue / (qreal)peers, 2) :
|
misc::accurateDoubleToString(100. * (qreal)ss.disk_read_queue / (qreal)peers, 2) + "%" :
|
||||||
QString("0\%")
|
QString("0\%")
|
||||||
);
|
);
|
||||||
// Disk queues
|
// Disk queues
|
||||||
|
Loading…
Reference in New Issue
Block a user