test adding more detail to response times
@@ -490,16 +490,12 @@ impl GooseRequest {
// minimize required memory to store and push upstream to the parent.
let rounded_response_time: usize;
- // No rounding for 1-10ms response times.
- if response_time < 10 {
- rounded_response_time = response_time_usize;
- }
- // Round to nearest 10 for 10-100ms response times.
- else if response_time < 100 {
+ // Round to nearest 10 for 100-1000ms response times.
+ if response_time < 1000 {
rounded_response_time = ((response_time as f64 / 10.0).round() * 10.0) as usize;
}
- // Round to nearest 100 for 100-1000ms response times.
- else if response_time < 1000 {
+ // Round to nearest 100 for 1000-10000ms response times.
+ else if response_time < 10000 {
rounded_response_time = ((response_time as f64 / 100.0).round() * 100.0) as usize;
}
// Round to nearest 1000 for all larger response times.
