Displaying 1 result from an estimated 1 matches for "mbytes_str".
2014 Oct 06
1
[PATCH] tools: fix free -m invocation
...deletion(-)
diff --git a/df/estimate-max-threads.c b/df/estimate-max-threads.c
index bbcdd73..7d5b090 100644
--- a/df/estimate-max-threads.c
+++ b/df/estimate-max-threads.c
@@ -44,7 +44,7 @@ estimate_max_threads (void)
/* Choose the number of threads based on the amount of free memory. */
mbytes_str = read_line_from ("LANG=C free -m | "
- "grep 'buffers/cache' | awk '{print $NF}'");
+ "grep '^Mem' | awk '{print $4+$6+$7}'");
if (mbytes_str == NULL)
return 1;
--
1...