Skip to content

Commit

Permalink
remove legacy thermal sensors system function
Browse files Browse the repository at this point in the history
  • Loading branch information
TanvirOnGH committed Jul 5, 2024
1 parent 8f3d41a commit 922323b
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions system.lua
Original file line number Diff line number Diff line change
Expand Up @@ -403,31 +403,6 @@ function system.lmsensors.get(name)
return system.lmsensors.storage[name] or { 0 }
end

-- Legacy
--function system.thermal.sensors(args)
-- local args = args or "'Physical id 0'"
-- local output = modutil.read.output("sensors | grep " .. args)
--
-- local temp = string.match(output, "%+(%d+%.%d)°[CF]")
--
-- return temp and { math.floor(tonumber(temp)) } or { 0 }
--end
--
--local sensors_store
--
--function system.thermal.sensors_core(args)
-- args = args or {}
-- local index = args.index or 0
--
-- if args.main then sensors_store = modutil.read.output("sensors | grep Core") end
-- local line = string.match(sensors_store, "Core " .. index .."(.-)\r?\n")
--
-- if not line then return { 0 } end
--
-- local temp = string.match(line, "%+(%d+%.%d)°[CF]")
-- return temp and { math.floor(tonumber(temp)) } or { 0 }
--end

-- Using hddtemp
function system.thermal.hddtemp(args)
args = args or {}
Expand Down

0 comments on commit 922323b

Please sign in to comment.