From 314aec73d4caf72896634bb005b1fd5f17180d2c Mon Sep 17 00:00:00 2001 From: Alakesh Haloi Date: Tue, 25 Jul 2023 18:48:56 -0500 Subject: [PATCH] agent: fix typo in constant It fixes a constant name to have the right spelling Fixes: #7457 Signed-off-by: Alakesh Haloi --- src/agent/src/sandbox.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agent/src/sandbox.rs b/src/agent/src/sandbox.rs index 175304ed1..1202bd793 100644 --- a/src/agent/src/sandbox.rs +++ b/src/agent/src/sandbox.rs @@ -433,7 +433,7 @@ fn online_resources(logger: &Logger, path: &str, pattern: &str, num: i32) -> Res } // max wait for all CPUs to online will use 50 * 100 = 5 seconds. -const ONLINE_CPUMEM_WATI_MILLIS: u64 = 50; +const ONLINE_CPUMEM_WAIT_MILLIS: u64 = 50; const ONLINE_CPUMEM_MAX_RETRIES: i32 = 100; #[instrument] @@ -463,7 +463,7 @@ fn online_cpus(logger: &Logger, num: i32) -> Result { ); return Ok(num); } - thread::sleep(time::Duration::from_millis(ONLINE_CPUMEM_WATI_MILLIS)); + thread::sleep(time::Duration::from_millis(ONLINE_CPUMEM_WAIT_MILLIS)); } Err(anyhow!(