diff --git a/src/cmd/flux-cron b/src/cmd/flux-cron index 35364916b932..221009357345 100755 --- a/src/cmd/flux-cron +++ b/src/cmd/flux-cron @@ -78,7 +78,7 @@ local function reladate (t) return fmt ("a minute ago") end if (diff < 90) then - return fmt ("%d minutes ago", diff) + return fmt ("%d minutes ago", math.floor (diff + 0.5)) end -- Convert to hours: @@ -99,7 +99,7 @@ local function reladate (t) return fmt ("%d weeks ago", (d + 3) / 7) end if (d < 365) then - return fmt ("%d months ago", (d + 15) / 30) + return fmt ("%d months ago", math.floor((d + 15) / 30)) end return fmt ("%.1f years ago", diff / 365)