//subdivide: remove debug logging

This commit is contained in:
Starbeamrainbowlabs 2020-10-10 17:02:29 +01:00
parent ef165b9c58
commit 7e02714c86
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

@ -136,12 +136,6 @@ worldedit.register_command("subdivide", {
-- print("eta", eta, "time_average", time_average, "chunks_left", chunks_total - i) -- print("eta", eta, "time_average", time_average, "chunks_left", chunks_total - i)
-- Send updates every 2 seconds, and after the first 3 chunks are done -- Send updates every 2 seconds, and after the first 3 chunks are done
print("[DEBUG]",
i, chunks_total,
(i / chunks_total) * 100,
wea.human_time(time_this),
wea.human_time(time_average),
"eta", eta, "[human]", wea.human_time(eta), "end")
if worldeditadditions.get_ms_time() - time_last_msg > 2 * 1000 or i == 3 or i == chunks_total then if worldeditadditions.get_ms_time() - time_last_msg > 2 * 1000 or i == 3 or i == chunks_total then
worldedit.player_notify(name, worldedit.player_notify(name,
string.format("%s%d / %d (~%.2f%%) complete | last chunk: %s, average: %s, ETA: ~%s", string.format("%s%d / %d (~%.2f%%) complete | last chunk: %s, average: %s, ETA: ~%s",