diff options
author | Aaron Ball <nullspoon@oper.io> | 2021-05-19 12:03:41 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2021-05-19 12:03:41 -0600 |
commit | 5c1aec361c0a46dacb2a9bfb28bbda23111a7925 (patch) | |
tree | 79419d6b8e99256a78cdd7c1e5d83567ba2fddf9 /zram-swap | |
parent | 57c37b8e9dc43f1392b1c71f86870cc387f15fc0 (diff) | |
download | zram-swap-5c1aec361c0a46dacb2a9bfb28bbda23111a7925.tar.gz zram-swap-5c1aec361c0a46dacb2a9bfb28bbda23111a7925.tar.xz |
Improve status command
Rather than only listing what device is in use, it now lists all of the
details of the device, including usage, using the zramctl command.
Diffstat (limited to 'zram-swap')
-rwxr-xr-x | zram-swap | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -23,7 +23,7 @@ MEMTOTAL=$(sed -n 's/^MemTotal: \+\([0-9]\+\) kB/\1/p' /proc/meminfo) status() { if [ -f "${RUNFILE}" ]; then - cat "${RUNFILE}" + zramctl $(cat "${RUNFILE}") else printf 'stopped\n' fi |