Added '<1m ago'
This commit is contained in:
parent
0af70883a8
commit
03bdbe2c7a
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,9 @@ namespace {
|
|||
* 300+ minutes will return "5+ hr ago"
|
||||
*/
|
||||
QString prettyPrintSecsAgo(uint32_t secs) {
|
||||
if (secs < SECS_PER_MIN) {
|
||||
return QObject::tr("<1m ago");
|
||||
}
|
||||
if (secs < SECS_PER_MIN * 5) {
|
||||
return QObject::tr("<5m ago");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue