Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit ec2735f

Browse files
committed
Round time dilation to 3 sig. fig.
1 parent 3c28a76 commit ec2735f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ pub fn process_associative(event: &FeedbackEvent) -> Vec<FeedbackEventNormalised
173173
category_secondary: time_dilation_average.to_string(),
174174
category_tertiary: "".to_string(),
175175
version: event.version,
176-
value: time_dilation_value.to_string(),
176+
value: ((time_dilation_value.as_str().unwrap().parse::<f32>().unwrap() * 1000.0).round() / 1000.0).to_string()
177177
});
178178
}
179179
}

0 commit comments

Comments
 (0)