REF don't do string conversion
This commit is contained in:
parent
b79f7ef049
commit
85908bc10d
|
@ -10,6 +10,7 @@ local __string_match = string.match
|
||||||
local __string_gmatch = string.gmatch
|
local __string_gmatch = string.gmatch
|
||||||
local __string_format = string.format
|
local __string_format = string.format
|
||||||
local __tonumber = tonumber
|
local __tonumber = tonumber
|
||||||
|
local __math_floor = math.floor
|
||||||
|
|
||||||
local CORETEMP_PATH = '/sys/devices/platform/coretemp.0/hwmon/hwmon%i/%s'
|
local CORETEMP_PATH = '/sys/devices/platform/coretemp.0/hwmon/hwmon%i/%s'
|
||||||
|
|
||||||
|
@ -192,10 +193,11 @@ local update = function(cr)
|
||||||
load_sum = load_sum + percent
|
load_sum = load_sum + percent
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Common.text_ring_set(
|
||||||
Common.text_ring_set(core.text_ring, cr,
|
core.text_ring,
|
||||||
Util.round_to_string(
|
cr,
|
||||||
0.001 * Util.read_file(core.coretemp_path, nil, '*n')))
|
__math_floor(0.001 * Util.read_file(core.coretemp_path, nil, '*n'))
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- read HWP of first cpu, then test all others to see if they match
|
-- read HWP of first cpu, then test all others to see if they match
|
||||||
|
|
Loading…
Reference in New Issue