Fix attribute value colors
This commit is contained in:
parent
ae5e9b8f34
commit
117df6158a
1 changed files with 2 additions and 1 deletions
|
|
@ -158,7 +158,8 @@ class Disk():
|
||||||
|
|
||||||
# Value color
|
# Value color
|
||||||
for threshold, color in ATTRIBUTE_COLORS:
|
for threshold, color in ATTRIBUTE_COLORS:
|
||||||
if value['raw'] >= ATTRIBUTES.get(threshold, float('inf')):
|
threshold_val = ATTRIBUTES.get(attr, {}).get(threshold, float('inf'))
|
||||||
|
if threshold_val and value['raw'] >= threshold_val:
|
||||||
value_color = color
|
value_color = color
|
||||||
if threshold == 'Maximum':
|
if threshold == 'Maximum':
|
||||||
note = '(invalid?)'
|
note = '(invalid?)'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue