This commit is contained in:
Julian Brammer 2024-06-08 19:23:08 +02:00
parent b106e6edaf
commit 2e9a644e37

View File

@ -29,7 +29,7 @@ shell.run("/brulijam/sync.lua")
local hash = require("brulijam.lib.hash") local hash = require("brulijam.lib.hash")
if os.getComputerLabel() == nil then if os.getComputerLabel() == nil then
print("wuauw") print("wuauw")
local labelMainPart = string.sub(hash.digestStr(os.getComputerID()), 1, 6) local labelMainPart = string.sub(hash.digestStr(string.format(os.getComputerID())), 1, 6)
os.setComputerLabel(labelPrefix .. "-" .. labelMainPart) os.setComputerLabel(labelPrefix .. "-" .. labelMainPart)
end end