Skip to content

Commit

Permalink
add position information to lbm/abm and nodetimer calls
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Jun 11, 2020
1 parent 287f012 commit c7429dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion monitoring/builtin/abm_calls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ minetest.register_on_mods_loaded(function()
local t0 = minetest.get_us_time()
monitoring.protected_call(metric, function()
old_action(pos, node, active_object_count, active_object_count_wider)
end)
end, pos)
local t1 = minetest.get_us_time()
local diff = t1 - t0
metric_time.inc(diff)
Expand Down
2 changes: 1 addition & 1 deletion monitoring/builtin/lbm_calls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ minetest.register_on_mods_loaded(function()
local t0 = minetest.get_us_time()
monitoring.protected_call(metric, function()
old_action(pos, node)
end)
end, pos)
local t1 = minetest.get_us_time()
local diff = t1 - t0
metric_time.inc(diff)
Expand Down
2 changes: 1 addition & 1 deletion monitoring/builtin/nodetimer_calls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ minetest.register_on_mods_loaded(function()
local result
monitoring.protected_call(metric, function()
result = old_action(pos, elapsed)
end)
end, pos)
local t1 = minetest.get_us_time()
local diff = t1 - t0

Expand Down

0 comments on commit c7429dc

Please sign in to comment.