mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Code optimization
This commit is contained in:
parent
52b3926f92
commit
263eb3c632
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ protected:
|
|||
QColor getPieceColor(int avail, double average) {
|
||||
if(!avail) return Qt::white;
|
||||
//qDebug("avail: %d/%d", avail, max_avail);
|
||||
QColor color = Qt::blue; // average avail
|
||||
const QColor color = Qt::blue; // average avail
|
||||
double fraction = 100.*average/avail;
|
||||
if(fraction < 100)
|
||||
fraction *= 0.9;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue