autocore: ethinfo: fix indentation

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2022-03-27 20:40:09 +08:00
parent 1e2bc6f636
commit 8b0362799a
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -19,15 +19,15 @@ for ifname, stat in pairs(util.ubus("network.device", "status")) do
end
if not stat.carrier then
duplex = "-"
elseif stat.speed:sub(-1) == "F" then
duplex = "-"
elseif stat.speed:sub(-1) == "F" then
duplex = "Full"
else
duplex = "Half"
end
eth_info[#eth_info+1] = { name = ifname, status = status,
speed = speed, duplex = duplex }
eth_info[#eth_info+1] = { name = ifname, status = status,
speed = speed, duplex = duplex }
end
end