]> git.ipfire.org Git - thirdparty/util-linux.git/commit
zramctl: add COMP-RATIO column
authorKarel Zak <kzak@redhat.com>
Mon, 25 Nov 2024 11:10:37 +0000 (12:10 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 25 Nov 2024 11:18:22 +0000 (12:18 +0100)
commit7b702606e3c72cf1dc007d805d7eeaa41257a4c5
tree8fae3cb1069c27312886cde49b988500b51ef60c
parentb186fabd466dd5b080ebabc3394a3d3b737e2efa
zramctl: add COMP-RATIO column

* Improve get_mm_stat() to return both numbers and strings.
* Add get_mm_stat_number() and get_mm_stat_string() functions.
* Add a new COL_COMPRATIO column.

Based on https://github.com/util-linux/util-linux/pull/3293

Co-Author: davidemanini
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/zramctl.c