Commit 03bdbe2c authored by Mitchell Rosen's avatar Mitchell Rosen
Browse files

Added '<1m ago'

parent 0af70883
......@@ -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");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment