From d5c8b26a458bc469229640b359aa05339ca66c38 Mon Sep 17 00:00:00 2001 From: Rob Walker Date: Tue, 3 Dec 2019 00:09:05 -0800 Subject: [PATCH] bank_leak_mac_os (#7209) --- runtime/src/bank.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 7956718cb1..6fe37ee588 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -3949,7 +3949,7 @@ mod tests { let pid = std::process::id(); #[cfg(not(target_os = "linux"))] error!( - "\nYou can run this to watch RAM:\n while read -p 'banks: '; do echo $(( $(ps -h -o %z --pid={})/$REPLY));done", pid + "\nYou can run this to watch RAM:\n while read -p 'banks: '; do echo $(( $(ps -o vsize= -p {})/$REPLY));done", pid ); loop { num_banks += 1; @@ -3973,11 +3973,7 @@ mod tests { } #[cfg(not(target_os = "linux"))] { - error!( - "{} banks, get mem usage for pid {} from ps or activity monitor, sleeping for 5 sec", - num_banks, - pid - ); + error!("{} banks, sleeping for 5 sec", num_banks); std::thread::sleep(Duration::new(5, 0)); } }