Uptime: round seconds to the nearest minute

To match the behavior of `uptime` command
This commit is contained in:
李通洲
2025-04-01 19:33:23 +08:00
parent 846f4c003e
commit 52fdabeb2e
+6
View File
@@ -198,6 +198,12 @@ void ffParseDuration(uint32_t days, uint32_t hours, uint32_t minutes, uint32_t s
return;
}
if(seconds >= 30)
{
minutes++;
seconds = 0;
}
if(days > 0)
{
ffStrbufAppendF(result, "%u day", days);