ENH use numbers for critical threshhold
This commit is contained in:
parent
4faa18ded0
commit
d15ede5ec9
2
core
2
core
|
@ -1 +1 @@
|
|||
Subproject commit 7a1f42c1fec42ff66ee8fcb1ae7d8fcd3926ff69
|
||||
Subproject commit 6243b9ca1540115cc66327286ab1e711a793e5c3
|
|
@ -103,7 +103,7 @@ M.initPercentPlot = function(x, y, w, h, spacing, label)
|
|||
y = y,
|
||||
x_align = 'right',
|
||||
append_end = '%',
|
||||
critical_limit = '>80',
|
||||
critical_limit = 80,
|
||||
text_color = _G_Patterns_.PRIMARY_FG,
|
||||
critical_color = _G_Patterns_.PRIMARY_FG,
|
||||
font_spec = M.normal_font_spec,
|
||||
|
|
|
@ -52,7 +52,7 @@ local bars = _G_Widget_.CompoundBar{
|
|||
spacing = _SPACING_,
|
||||
num_bars = FS_NUM,
|
||||
-- thickness = 12,
|
||||
critical_limit = '>0.8',
|
||||
critical_limit = 0.8,
|
||||
indicator_pattern = Patterns.INDICATOR_FG_PRIMARY,
|
||||
critical_pattern = Patterns.INDICATOR_FG_CRITICAL,
|
||||
line_pattern = Patterns.INDICATOR_BG,
|
||||
|
|
|
@ -44,7 +44,7 @@ local internal_temp = Common.initTextRowCrit(
|
|||
_G_INIT_DATA_.SECTION_WIDTH,
|
||||
'Internal Temperature',
|
||||
'°C',
|
||||
'>80'
|
||||
80
|
||||
)
|
||||
|
||||
local _SEP_Y_2_ = _INTERNAL_TEMP_Y_ + _SEPARATOR_SPACING_
|
||||
|
|
|
@ -59,7 +59,7 @@ local dial = _G_Widget_.Dial{
|
|||
y = DIAL_Y,
|
||||
radius = DIAL_RADIUS,
|
||||
thickness = _DIAL_THICKNESS_,
|
||||
critical_limit = '>0.8',
|
||||
critical_limit = 0.8,
|
||||
dial_pattern = _G_Patterns_.INDICATOR_FG_PRIMARY,
|
||||
critical_pattern = _G_Patterns_.INDICATOR_FG_CRITICAL,
|
||||
arc_pattern = _G_Patterns_.INDICATOR_BG
|
||||
|
@ -77,7 +77,7 @@ local text_ring = Common.initTextRing(
|
|||
DIAL_Y,
|
||||
DIAL_RADIUS - _DIAL_THICKNESS_ / 2 - 2,
|
||||
'%',
|
||||
'>80'
|
||||
80
|
||||
)
|
||||
|
||||
local _LINE_1_Y_ = header.bottom_y + _TEXT_Y_OFFSET_
|
||||
|
@ -91,7 +91,7 @@ local swap = Common.initTextRowCrit(
|
|||
_RIGHT_X_ - _TEXT_LEFT_X_,
|
||||
'Swap Usage',
|
||||
' %',
|
||||
'80'
|
||||
80
|
||||
)
|
||||
|
||||
local cache = {
|
||||
|
|
|
@ -63,7 +63,7 @@ local _create_core_ = function(cores, id, x, y)
|
|||
outer_radius = _DIAL_OUTER_RADIUS_,
|
||||
spacing = _DIAL_SPACING_,
|
||||
num_dials = NUM_THREADS_PER_CORE,
|
||||
critical_limit = '>0.8',
|
||||
critical_limit = 0.8,
|
||||
critical_pattern = _G_Patterns_.INDICATOR_FG_CRITICAL,
|
||||
dial_pattern = _G_Patterns_.INDICATOR_FG_PRIMARY,
|
||||
arc_pattern = _G_Patterns_.INDICATOR_BG
|
||||
|
@ -73,7 +73,7 @@ local _create_core_ = function(cores, id, x, y)
|
|||
y,
|
||||
_DIAL_INNER_RADIUS_ - 2,
|
||||
'°C',
|
||||
'>90'
|
||||
90
|
||||
),
|
||||
coretemp_path = string.format(CORETEMP_PATH, hwmon_index, 'temp'..(id + 2)..'_input'),
|
||||
conky_loads = conky_loads,
|
||||
|
|
Loading…
Reference in New Issue