milo perf
This commit is contained in:
@@ -6,6 +6,7 @@ local Autocraft = {
|
||||
priority = 100,
|
||||
}
|
||||
|
||||
-- TODO: fix/test
|
||||
function Autocraft:cycle(context)
|
||||
local list = { }
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@ local device = _G.device
|
||||
|
||||
local context = Milo:getContext()
|
||||
|
||||
-- TODO: allow change of machine
|
||||
|
||||
local itemPage = UI.Page {
|
||||
titleBar = UI.TitleBar {
|
||||
title = 'Limit Resource',
|
||||
|
||||
@@ -89,23 +89,15 @@ local listingPage = UI.Page {
|
||||
accelerators = {
|
||||
r = 'refresh',
|
||||
[ 'control-r' ] = 'refresh',
|
||||
q = 'quit',
|
||||
|
||||
[ 'control-e' ] = 'eject',
|
||||
[ 'control-s' ] = 'eject_stack',
|
||||
[ 'control-a' ] = 'eject_all',
|
||||
|
||||
[ 'control-1' ] = 'eject_1',
|
||||
[ 'control-2' ] = 'eject_1',
|
||||
[ 'control-3' ] = 'eject_1',
|
||||
[ 'control-4' ] = 'eject_1',
|
||||
[ 'control-5' ] = 'eject_1',
|
||||
[ 'control-6' ] = 'eject_1',
|
||||
[ 'control-7' ] = 'eject_1',
|
||||
[ 'control-8' ] = 'eject_1',
|
||||
[ 'control-9' ] = 'eject_1',
|
||||
[ 'control-0' ] = 'eject_1',
|
||||
[ 'control-m' ] = 'machines',
|
||||
[ 'control-l' ] = 'resume',
|
||||
|
||||
q = 'quit',
|
||||
},
|
||||
displayMode = 0,
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ local function client(socket)
|
||||
end
|
||||
debug('remote: ' .. data.request)
|
||||
if data.request == 'list' then
|
||||
local items = Milo:refreshItems()
|
||||
local items = Milo:listItems()
|
||||
Milo:mergeResources(items)
|
||||
socket:write(items)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user