mirror of
https://github.com/20kdc/OC-KittenOS.git
synced 2024-11-27 04:48:05 +11:00
Fix #2 (screens being double-claimed)
This commit is contained in:
parent
d1e83616e7
commit
c3b6cdc898
@ -3,7 +3,7 @@
|
|||||||
return {
|
return {
|
||||||
["neo"] = {
|
["neo"] = {
|
||||||
desc = "KittenOS NEO Kernel & Base Libs",
|
desc = "KittenOS NEO Kernel & Base Libs",
|
||||||
v = 3,
|
v = 4,
|
||||||
deps = {
|
deps = {
|
||||||
},
|
},
|
||||||
dirs = {
|
dirs = {
|
||||||
|
@ -9,13 +9,12 @@ return function (
|
|||||||
address
|
address
|
||||||
)
|
)
|
||||||
neo.ensureType(address, "string")
|
neo.ensureType(address, "string")
|
||||||
for _, monitor in ipairs(monitorPool) do
|
for k, monitor in ipairs(monitorPool) do
|
||||||
if monitor.address == address then
|
if monitor.address == address then
|
||||||
-- find GPU
|
-- find GPU
|
||||||
local gpu, bestStats = nil, {-math.huge, -math.huge, -math.huge}
|
local gpu, bestStats = nil, {-math.huge, -math.huge, -math.huge}
|
||||||
currentGPUBinding = {}
|
for a, _ in pairs(currentGPUBinding) do
|
||||||
for k, _ in pairs(currentGPUBinding) do
|
currentGPUBinding[a] = nil
|
||||||
currentGPUBinding[k] = nil
|
|
||||||
end
|
end
|
||||||
for v in gpus() do
|
for v in gpus() do
|
||||||
v.bind(monitor.address, false)
|
v.bind(monitor.address, false)
|
||||||
|
Loading…
Reference in New Issue
Block a user