Skip to content

whattime: Refactor the pretty-print evaluation

Jan Rybar requested to merge jrybar/procps:uptime-pretty-modulo-bug into master

This avoids rounding errors such as in the case of 364 days of uptime which results in only output that prints at the hour and below.

$ uptime -p

Without the patch:

up 47 minutes

With the patch:

up 52 weeks, 47 minutes

Merge request reports