[LTP] [PATCH] swapping: replace mem_free by mem_available

Li Wang liwang@redhat.com
Wed Jul 20 10:28:28 CEST 2016


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


More information about the ltp mailing list