color the letter of a btrfs storage pool
This commit is contained in:
parent
51d1cd1926
commit
3967dafd93
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue