color the letter of a btrfs storage pool

This commit is contained in:
Martinez 2016-10-10 11:03:02 +02:00
parent 51d1cd1926
commit 3967dafd93

View file

@ -22,6 +22,7 @@ COLOR_TERM_SCREEN = 27
COLOR_CLOCK = 27
COLOR_CLOCK_DELTA = 11
COLOR_MEMSWAP = 7
COLOR_SPACE_BTRFS = 12
COLOR_SPACE_OK = 2
COLOR_SPACE_WARN = 3
COLOR_SPACE_ERROR = 1
@ -617,7 +618,9 @@ class StatsPart(Part):
self.fragments.append(" |")
first_mountpoint = False
if type == "btrfs": self.fragments.append(style_color(COLOR_SPACE_BTRFS))
self.fragments.append(short_name)
if type == "btrfs": self.fragments.append(style_reset())
self.fragments.append(style_bold())
self.fragments.append(style_color(settings.get_space_color(stor_free, stor_total)))
stor_free_si = si_number(stor_free)