summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelik Manukyan <melik@remus.gateway.2wire.net>2009-12-23 14:06:14 -0800
committerMelik Manukyan <melik@remus.gateway.2wire.net>2009-12-23 14:06:14 -0800
commit0e3317220ac318ec412efd2342684be8c8816081 (patch)
tree16cf0daa9898a3d081237962ab5e4c87a677b801
parent6516828325af9dfdea772c6b32e91a9565ca3d34 (diff)
slight bug fix in fs display
-rw-r--r--archey6
1 files changed, 3 insertions, 3 deletions
diff --git a/archey b/archey
index b5f8f6c..676ce6b 100644
--- a/archey
+++ b/archey
@@ -17,7 +17,7 @@ display = [
'packages',
# 'fs:/boot',
# 'fs:/home',
-# 'fs:/MOUNT/POINT
+# 'fs:/MOUNT/POINT',
'fs:/' ]
# Array containing Values
@@ -136,9 +136,9 @@ def packages_display():
# File System Function
def fs_display(mount=''):
- p1 = Popen(['df', '-Th', mount], stdout=PIPE).communicate()[0]
+ p1 = Popen(['df', '-Ph', mount], stdout=PIPE).communicate()[0]
part = [line for line in p1.split('\n') if line][1]
- part = part.split()[3]
+ part = part.split()[2]
if mount == '/': mount = '/root'
fs = mount.rpartition('/')[2].title()
output (fs, part)