From: Li Wang <liwang@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] swapping: replace mem_free by mem_available
Date: Wed, 20 Jul 2016 16:28:28 +0800 [thread overview]
Message-ID: <20160720082828.GA7288@gmail.com> (raw)
In-Reply-To: <1469000896-6122-1-git-send-email-liwang@redhat.com>
On Wed, Jul 20, 2016 at 03:48:16PM +0800, Li Wang wrote:
> - sleep(5);
> - if (mem_free_init < 10240)
> + if (!FILE_LINES_SCANF(cleanup, "/proc/meminfo", "MemAvailable: %ld",
> + &mem_available_init))
slight correction: the "!" is redundant. That should be like:
if (FILE_LINES_SCANF(cleanup, "/proc/meminfo", "MemAvailable: %ld",
&mem_available_init))
Regards,
Li Wang
next prev parent reply other threads:[~2016-07-20 8:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-20 7:48 [LTP] [PATCH] swapping: replace mem_free by mem_available Li Wang
2016-07-20 8:28 ` Li Wang [this message]
2016-07-28 11:28 ` Jan Stancek
2016-08-01 6:43 ` Li Wang
2016-08-01 7:15 ` Jan Stancek
2016-08-01 7:36 ` Li Wang
-- strict thread matches above, loose matches on Subject: below --
2016-07-12 5:51 Li Wang
2016-07-12 9:22 ` Li Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160720082828.GA7288@gmail.com \
--to=liwang@redhat.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox