mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-04 12:21:04 -05:00
set days from 100 to 365 days.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1685 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b715d07708
commit
0aeea4724a
@ -318,7 +318,7 @@ class misc : public QObject{
|
|||||||
}
|
}
|
||||||
int days = hours / 24;
|
int days = hours / 24;
|
||||||
hours = hours - days * 24;
|
hours = hours - days * 24;
|
||||||
if(days < 100) {
|
if(days < 365) {
|
||||||
return tr("%1d %2h %3m", "e.g: 2days 10hours 2minutes").arg(QString::fromUtf8(misc::toString(days).c_str())).arg(QString::fromUtf8(misc::toString(hours).c_str())).arg(QString::fromUtf8(misc::toString(minutes).c_str()));
|
return tr("%1d %2h %3m", "e.g: 2days 10hours 2minutes").arg(QString::fromUtf8(misc::toString(days).c_str())).arg(QString::fromUtf8(misc::toString(hours).c_str())).arg(QString::fromUtf8(misc::toString(minutes).c_str()));
|
||||||
}
|
}
|
||||||
return tr("Unknown");
|
return tr("Unknown");
|
||||||
|
Loading…
Reference in New Issue
Block a user