|
|
|
@ -564,7 +564,7 @@ QString misc::userFriendlyDuration(qlonglong seconds) {
@@ -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("∞"); |
|
|
|
|
} |
|
|
|
|