aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-12-04 18:15:11 -0700
committerMelody Horn <melody@boringcactus.com>2021-12-04 18:15:11 -0700
commita0cc2290cbff36db824e99d1b1f5b7b930eff628 (patch)
tree398fc0f0de2293a5a2b53ddc02fa492f3f8fdbee
parentbd109c5b035d5ac7d01cc4bc3dafeb46d3a05f3b (diff)
downloadqueue-go-brrr-a0cc2290cbff36db824e99d1b1f5b7b930eff628.tar.gz
queue-go-brrr-a0cc2290cbff36db824e99d1b1f5b7b930eff628.zip
debugging in production can i get a hell yeah
-rw-r--r--src/history.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/history.rs b/src/history.rs
index 5216d10..2e16cae 100644
--- a/src/history.rs
+++ b/src/history.rs
@@ -40,6 +40,7 @@ impl History {
if overall_queue_motion == 0 {
return None;
}
+ gloo::console::log!("time", overall_time_elapsed, "motion", overall_queue_motion);
let duration_per_step = overall_time_elapsed / overall_queue_motion as i32;
let remaining_duration = duration_per_step * last_size as i32;
let completion_time = last_time + remaining_duration;