提交 92995cc7 编写于 作者: N Nicolas Hennion

Manage Fs name > 8 chars

上级 aa9797c6
...@@ -1582,9 +1582,14 @@ class glancesScreen: ...@@ -1582,9 +1582,14 @@ class glancesScreen:
mounted = 0 mounted = 0
fs_num = min(screen_y - self.fs_y - 3, len(fs)) fs_num = min(screen_y - self.fs_y - 3, len(fs))
for mounted in range(0, fs_num): for mounted in range(0, fs_num):
self.term_window.addnstr( if len(fs[mounted]['mnt_point']) > 8:
self.fs_y + 1 + mounted, self.term_window.addnstr(
self.fs_x, fs[mounted]['mnt_point'], 8) self.fs_y + 1 + mounted,
self.fs_x, '_'+fs[mounted]['mnt_point'][-7:], 8)
else:
self.term_window.addnstr(
self.fs_y + 1 + mounted,
self.fs_x, fs[mounted]['mnt_point'], 8)
self.term_window.addnstr( self.term_window.addnstr(
self.fs_y + 1 + mounted, self.fs_y + 1 + mounted,
self.fs_x + 10, self.__autoUnit(fs[mounted]['size']), 8) self.fs_x + 10, self.__autoUnit(fs[mounted]['size']), 8)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册