diff options
author | mlaier <mlaier@FreeBSD.org> | 2005-12-11 21:37:42 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2005-12-11 21:37:42 +0000 |
commit | a5a3178da80e61ffabab9e67717d1c16aed9426f (patch) | |
tree | b161c6c2b1a29ade5dca06155da5d42a55c1dcda /sys | |
parent | fa0e8a06573ff85291c7d244834abd940d29281b (diff) | |
download | FreeBSD-src-a5a3178da80e61ffabab9e67717d1c16aed9426f.zip FreeBSD-src-a5a3178da80e61ffabab9e67717d1c16aed9426f.tar.gz |
Fix calculation of meminfo's swaptotal and swapfree on at least amd64.
MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/linprocfs/linprocfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index 8854233..b1d0f8a 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -144,8 +144,8 @@ linprocfs_domeminfo(PFS_FILL_ARGS) memused = cnt.v_wire_count * PAGE_SIZE; memfree = memtotal - memused; swap_pager_status(&i, &j); - swaptotal = i * PAGE_SIZE; - swapused = j * PAGE_SIZE; + swaptotal = (unsigned long long)i * PAGE_SIZE; + swapused = (unsigned long long)j * PAGE_SIZE; swapfree = swaptotal - swapused; memshared = 0; mtx_lock(&vm_object_list_mtx); |