mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-04-18 07:57:59 +02:00
Fix typo in function to get size until task queue stops
This commit is contained in:
parent
eeb33b913c
commit
fd0623c085
@ -433,7 +433,7 @@ impl IndexScheduler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Return the max size of task allowed until the task queue stop receiving.
|
/// Return the max size of task allowed until the task queue stop receiving.
|
||||||
pub fn remaining_size_until_task_queu_stop(&self) -> Result<u64> {
|
pub fn remaining_size_until_task_queue_stop(&self) -> Result<u64> {
|
||||||
Ok((self.env.info().map_size as u64 * TASK_SCHEDULER_SIZE_THRESHOLD_PERCENT_INT / 100)
|
Ok((self.env.info().map_size as u64 * TASK_SCHEDULER_SIZE_THRESHOLD_PERCENT_INT / 100)
|
||||||
.saturating_sub(self.used_size()?))
|
.saturating_sub(self.used_size()?))
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
@ -173,7 +173,7 @@ pub async fn get_metrics(
|
|||||||
crate::metrics::MEILISEARCH_TASK_QUEUE_USED_SIZE.set(index_scheduler.used_size()? as i64);
|
crate::metrics::MEILISEARCH_TASK_QUEUE_USED_SIZE.set(index_scheduler.used_size()? as i64);
|
||||||
|
|
||||||
crate::metrics::MEILISEARCH_TASK_QUEUE_SIZE_UNTIL_STOP_REGISTERING
|
crate::metrics::MEILISEARCH_TASK_QUEUE_SIZE_UNTIL_STOP_REGISTERING
|
||||||
.set(index_scheduler.remaining_size_until_task_queu_stop()? as i64);
|
.set(index_scheduler.remaining_size_until_task_queue_stop()? as i64);
|
||||||
|
|
||||||
let encoder = TextEncoder::new();
|
let encoder = TextEncoder::new();
|
||||||
let mut buffer = vec![];
|
let mut buffer = vec![];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user