diff options
author | Melik Manukyan <melik@remus.gateway.2wire.net> | 2009-12-23 14:06:14 -0800 |
---|---|---|
committer | Melik Manukyan <melik@remus.gateway.2wire.net> | 2009-12-23 14:06:14 -0800 |
commit | 0e3317220ac318ec412efd2342684be8c8816081 (patch) | |
tree | 16cf0daa9898a3d081237962ab5e4c87a677b801 | |
parent | 6516828325af9dfdea772c6b32e91a9565ca3d34 (diff) |
slight bug fix in fs display
-rw-r--r-- | archey | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |