REF update core

This commit is contained in:
Nathan Dwarshuis 2021-08-08 17:15:39 -04:00
parent 208440a6d4
commit e55ef84108
3 changed files with 4 additions and 5 deletions

2
core

@ -1 +1 @@
Subproject commit 8f242d7d7618cb2bdcdc3838544e69df5fe92c46
Subproject commit e83c1cac1000d1fac2f84e52128a859d26798fff

View File

@ -117,9 +117,9 @@ return function(update_freq)
-- cpu top table
local NUM_ROWS = 5
local TABLE_CONKY = pure.map(
local TABLE_CONKY = pure.map_n(
function(i) return {pid = '${top pid '..i..'}', cpu = '${top cpu '..i..'}'} end,
pure.seq(NUM_ROWS)
NUM_ROWS
)
local tbl = common.make_text_table(

View File

@ -19,9 +19,8 @@ return function(update_freq)
local __tonumber = tonumber
local __string_match = string.match
-- TODO any way to make better lambda functions?
local DEVICE_PATHS = pure.map(
function(s) return string.format('/sys/block/%s/stat', s) end,
pure.partial(string.format, '/sys/block/%s/stat', true),
DEVICES
)