aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-12-04 18:16:08 -0700
committerMelody Horn <melody@boringcactus.com>2021-12-04 18:16:08 -0700
commitb5c68d4ddbafeec577e6a56a02723460c9ce4f33 (patch)
treeeab4f9cae3695306046146c51fbabed84259f6f9 /src
parenta0cc2290cbff36db824e99d1b1f5b7b930eff628 (diff)
downloadqueue-go-brrr-b5c68d4ddbafeec577e6a56a02723460c9ce4f33.tar.gz
queue-go-brrr-b5c68d4ddbafeec577e6a56a02723460c9ce4f33.zip
*successfully* debugging in production can i get a hell yeah
Diffstat (limited to 'src')
-rw-r--r--src/history.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/history.rs b/src/history.rs
index 2e16cae..48ee7db 100644
--- a/src/history.rs
+++ b/src/history.rs
@@ -40,7 +40,12 @@ impl History {
if overall_queue_motion == 0 {
return None;
}
- gloo::console::log!("time", overall_time_elapsed, "motion", overall_queue_motion);
+ gloo::console::log!(
+ "time",
+ overall_time_elapsed.to_string(),
+ "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;