Disallow negative progress increase per hour %
See GH#1902.
This commit is contained in:
parent
5389fac4ea
commit
44678e5442
|
@ -104,7 +104,7 @@ void ModalOverlay::tipUpdate(int count, const QDateTime& blockDate, double nVeri
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// show progress increase per hour
|
// show progress increase per hour
|
||||||
ui->progressIncreasePerH->setText(QString::number(progressPerHour*100, 'f', 2)+"%");
|
ui->progressIncreasePerH->setText(QString::number(progressPerHour > 0 ? progressPerHour*100 : 0, 'f', 2)+"%");
|
||||||
|
|
||||||
// show expected remaining time
|
// show expected remaining time
|
||||||
ui->expectedTimeLeft->setText(GUIUtil::formatNiceTimeOffset(remainingMSecs/1000.0));
|
ui->expectedTimeLeft->setText(GUIUtil::formatNiceTimeOffset(remainingMSecs/1000.0));
|
||||||
|
|
Loading…
Reference in a new issue