[systemd-devel] systemctl show outputs incorrect MemoryCurrent value

George Xie georgexsh at gmail.com
Thu Jul 26 03:20:23 UTC 2018


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


More information about the systemd-devel mailing list