Skip to content

Commit

Permalink
Display actual active count instead of row count (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
S-S-X committed Jun 17, 2021
1 parent c705397 commit fd4bece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion technic/machines/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ minetest.register_chatcommand("technic_get_active_networks", {
return align(("%s,%s,%s"):format(p.x,p.y,p.z),21)
end
for id,net in pairs(active_networks) do
activecount = activecount + 1
if minlag == 0 or (net.lag and net.lag >= minlag * 1000) then
activecount = activecount + 1
table.insert(network_info, ("Pos:%s PR:%s RE:%s BA:%s Skip:%s Lag:%sms"):format(
net2str(id), align(#net.PR_nodes, 4), align(#net.RE_nodes, 4), align(#net.BA_nodes, 4),
align(net.skip, 3), net.lag and align(("%0.2f"):format(net.lag / 1000), 6) or ""
Expand Down

0 comments on commit fd4bece

Please sign in to comment.