- Improved a lot ETA calculation algorithm

This commit is contained in:
Christophe Dumez 2007-11-24 21:55:19 +00:00
parent a91d2028d8
commit f7fa66c65d
4 changed files with 69 additions and 71 deletions

View file

@ -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");
}