docs: Readability fixes in src/analytics/.rs files

Signed-off-by: Ryan Russell <git@ryanrussell.org>
This commit is contained in:
Ryan Russell 2022-06-11 10:21:05 -05:00
parent 07a35c6445
commit 8990b12609
No known key found for this signature in database
GPG key ID: 8A7DE15B3F4F5007
2 changed files with 4 additions and 4 deletions

View file

@ -495,7 +495,7 @@ impl SearchAggregator {
let percentile_99th = 0.99 * (self.total_succeeded as f64 - 1.) + 1.;
// we get all the values in a sorted manner
let time_spent = self.time_spent.into_sorted_vec();
// We are only intersted by the slowest value of the 99th fastest results
// We are only interested by the slowest value of the 99th fastest results
let time_spent = time_spent.get(percentile_99th as usize);
let properties = json!({
@ -574,8 +574,8 @@ impl DocumentsAggregator {
let content_type = request
.headers()
.get(CONTENT_TYPE)
.map(|s| s.to_str().unwrap_or("unkown"))
.unwrap_or("unkown")
.map(|s| s.to_str().unwrap_or("unknown"))
.unwrap_or("unknown")
.to_string();
ret.content_types.insert(content_type);
ret.index_creation = index_creation;