mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
More readable display of ETA
This commit is contained in:
parent
d01385a7ac
commit
5e7cafb8c0
1 changed files with 2 additions and 2 deletions
|
@ -564,7 +564,7 @@ QString misc::userFriendlyDuration(qlonglong seconds) {
|
|||
int days = hours / 24;
|
||||
hours = hours - days * 24;
|
||||
if(days < 100) {
|
||||
return tr("%1d%2h%3m", "e.g: 2days 10hours 2minutes").arg(QString::number(days)).arg(QString::number(hours)).arg(QString::number(minutes));
|
||||
return tr("%1d %2h", "e.g: 2days 10hours").arg(QString::number(days)).arg(QString::number(hours));
|
||||
}
|
||||
return QString::fromUtf8("∞");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue