Added '<1m ago'

This commit is contained in:
Mitchell Rosen 2014-11-22 00:08:00 -08:00
parent 0af70883a8
commit 03bdbe2c7a

View file

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