Displaying 2 results from an estimated 2 matches for "7d5b090".
Did you mean:
7d5b0000
2014 Oct 06
1
[PATCH] tools: fix free -m invocation
...more. On the other hand, the data from it can be calculated from the
memory values, so just do the calculation manually (with awk).
---
df/estimate-max-threads.c | 2 +-
1 file changed, 1 insertion(+), 1 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 &...
2015 May 14
1
[PATCH] When calling getline first time, initialize length to zero.
...to initialize the length anyway.
---
df/estimate-max-threads.c | 2 +-
examples/libvirt-auth.c | 2 +-
fuse/test-fuse.c | 2 +-
p2v/main.c | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/df/estimate-max-threads.c b/df/estimate-max-threads.c
index 7d5b090..ca1fd42 100644
--- a/df/estimate-max-threads.c
+++ b/df/estimate-max-threads.c
@@ -60,7 +60,7 @@ read_line_from (const char *cmd)
{
FILE *pp;
char *ret = NULL;
- size_t allocsize;
+ size_t allocsize = 0;
pp = popen (cmd, "r");
if (pp == NULL)
diff --git a/examples/libvir...