- ls sorts dirs first
- add gitd

render.py:
- group memory and swap stats with sysload instead of storage
This commit is contained in:
Martinez 2015-12-26 17:44:23 +01:00
parent f8351e033d
commit 92538adfaa
2 changed files with 9 additions and 3 deletions

View file

@ -421,7 +421,7 @@ class StatsPart(Part):
self.fragments.append(style_reset())
# tasks
self.fragments.append("%d | " %(sysload.tasks_total))
self.fragments.append("%d " %(sysload.tasks_total))
# memory (and swap, if used)
mem_total = 0
@ -459,6 +459,7 @@ class StatsPart(Part):
# mountpoints
names = []
first_mountpoint = True
with open("/proc/self/mounts") as f:
for line in f:
@ -495,6 +496,10 @@ class StatsPart(Part):
stor_total = stat.f_blocks * stat.f_bsize
stor_free = stat.f_bavail * stat.f_bsize
if first_mountpoint:
self.fragments.append(" |")
first_mountpoint = False
self.fragments.append(short_name)
self.fragments.append(style_bold())
self.fragments.append(style_color(settings.get_space_color(stor_free, stor_total)))