aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-08-27 18:07:46 +0100
committerBryn M. Reeves <bmr@redhat.com>2015-08-27 18:07:46 +0100
commitfc4e2be53eeeaa9ab0d4d089335bbeb007c1817e (patch)
treee952181f18912bcb7d350a666808a05da3979de8
parent08f5b211dbbf143b3f3ce5e8328947f01adb86cd (diff)
downloadsos-fc4e2be53eeeaa9ab0d4d089335bbeb007c1817e.tar.gz
[memory] collect swapon --show output in bytes
Default is human readable: $ swapon --show NAME TYPE SIZE USED PRIO /dev/dm-0 partition 1.5G 0B -1 Should be: $ swapon --show --bytes NAME TYPE SIZE USED PRIO /dev/dm-0 partition 1610608640 0 -1 Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/memory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/memory.py b/sos/plugins/memory.py
index 4c418964..710f73f1 100644
--- a/sos/plugins/memory.py
+++ b/sos/plugins/memory.py
@@ -36,7 +36,7 @@ class Memory(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
self.add_cmd_output("free", root_symlink="free")
self.add_cmd_output([
"free -m",
- "swapon --show"
+ "swapon --bytes --show"
])
# vim: set et ts=4 sw=4 :