mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Improved a lot ETA calculation algorithm
This commit is contained in:
parent
a91d2028d8
commit
f7fa66c65d
4 changed files with 69 additions and 71 deletions
|
@ -298,7 +298,7 @@ class misc : public QObject{
|
|||
|
||||
// Take a number of seconds and return an user-friendly
|
||||
// time duration like "1d 2h 10m".
|
||||
static QString userFriendlyDuration(const long int seconds) {
|
||||
static QString userFriendlyDuration(qlonglong seconds) {
|
||||
if(seconds < 0) {
|
||||
return tr("Unknown");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue