systemctl show outputs incorrect MemoryCurrent value

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

 



> 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."

`systemctl status` will omit the `Memory` field if the MemroyCurrent value
is uint64max.
I am fine with it, the output is consistent as an integer, and is
informative enough to tell the user this value is absent.


--
Xie Shi
http://xerr.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180726/897d50bd/attachment.html>


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

  Powered by Linux