From c4f400c69701b3e6fb17dbf4385d92ac8141ffa0 Mon Sep 17 00:00:00 2001 From: petrucci4prez Date: Thu, 20 Jul 2017 00:58:23 -0400 Subject: [PATCH] change is_critical to boolean --- drawing/Graphics.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drawing/Graphics.lua b/drawing/Graphics.lua index b32ff77..236493a 100644 --- a/drawing/Graphics.lua +++ b/drawing/Graphics.lua @@ -209,7 +209,7 @@ local NV_REGEX = '(%d+)\n'.. local NA = 'N/A' local nvidia_off = function(cr) - CriticalText.set(internal_temp.value, cr, NA, 1) + CriticalText.set(internal_temp.value, cr, NA, false) Text.set(pci_util.value, cr, NA) TextColumn.set(clock_speed.values, cr, 1, NA) @@ -245,8 +245,8 @@ local update = function(cr) memory_frequency, gpu_utilization, vid_utilization, pci_utilization = __string_match(nvidia_settings_glob, NV_REGEX) - local is_critical = 1 - if __tonumber(temp_reading) > 80 then is_critical = 0 end + local is_critical = false + if __tonumber(temp_reading) > 80 then is_critical = true end CriticalText.set(internal_temp.value, cr, temp_reading..'°C', is_critical) Text.set(pci_util.value, cr, pci_utilization..'%')