mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-27 06:54:20 +00:00
Code optimization
This commit is contained in:
parent
52b3926f92
commit
263eb3c632
@ -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…
x
Reference in New Issue
Block a user