[systemd-devel] systemctl show outputs incorrect MemoryCurrent value

Mantas Mikulėnas grawity at gmail.com
Thu Jul 26 08:48:46 UTC 2018


On Thu, Jul 26, 2018, 09:08 Reindl Harald <h.reindl at thelounge.net> wrote:

>
>
> Am 26.07.2018 um 05:20 schrieb George Xie:
> >> dealing internally with surch arbiatry numbers is still a differnt world
> >> than ouput it in a user-tool like "systemctl show" which could simply
> >> translate it to some meaningful string
> >> no user cares about UINT64_MAX in such outputs
> >
> > quoted from the manual: (systemctl show) "is intended to be used
> > whenever computer-parsable output is required. . Use status if you are
> > looking for formatted human-readable output."
>
> arbitary numbers also don't help machines much and UINT64_MAX is a
> random value making no sense - really - something like -1 but why in teh
> world UINT64_MAX for something unset
>

UINT64_MAX *is* -1.

> --

Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180726/3a6912ce/attachment.html>


More information about the systemd-devel mailing list