[LTP] [PATCH 2/3] syscalls: sysinfo01: Rewrite

Andrea Cervesato andrea.cervesato@suse.com
Wed Mar 4 16:32:56 CET 2026


> +	totalram_kb = ((unsigned long long)sys_buf->totalram * sys_buf->mem_unit) / 1024;
> +	totalswap_kb = ((unsigned long long)sys_buf->totalswap * sys_buf->mem_unit) / 1024;

This 1024 can change into TST_KB also.

--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com


More information about the ltp mailing list