systemctl show outputs incorrect MemoryCurrent value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux