From f2669f5d16ddafa2e92c785aeae2fb3899238d27 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 15 May 2003 11:56:51 +0000 Subject: * fhandler_proc.cc (format_proc_meminfo): Make swap memory output Linux style values. --- winsup/cygwin/fhandler_proc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/fhandler_proc.cc') diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc index a6f759d2e..f9b866d83 100644 --- a/winsup/cygwin/fhandler_proc.cc +++ b/winsup/cygwin/fhandler_proc.cc @@ -397,8 +397,8 @@ format_proc_meminfo (char *destbuf, size_t maxsize) GlobalMemoryStatus (&memory_status); mem_total = memory_status.dwTotalPhys; mem_free = memory_status.dwAvailPhys; - swap_total = memory_status.dwTotalPageFile; - swap_free = memory_status.dwAvailPageFile; + swap_total = memory_status.dwTotalPageFile - mem_total; + swap_free = memory_status.dwAvailPageFile - mem_total; return __small_sprintf (destbuf, " total: used: free:\n" "Mem: %10lu %10lu %10lu\n" "Swap: %10lu %10lu %10lu\n" -- cgit v1.2.3