FreeBSD Bugzilla – Attachment 125552 Details for
Bug 169174
[patch] sysutils/htop: fix swap size calculation on i386
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 732 bytes, created by
vsjcfm
on 2012-06-17 09:20:09 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
vsjcfm
Created:
2012-06-17 09:20:09 UTC
Size:
732 bytes
patch
obsolete
>--- /usr/ports/sysutils/htop/files/patch-ProcessList.c 2012-05-30 00:22:56.000000000 +0300 >+++ patch-ProcessList.c 2012-06-17 10:53:54.000000000 +0300 >@@ -51,8 +51,8 @@ > + kd = kvm_open(NULL, _PATH_DEVNULL, NULL, O_RDONLY, NULL); > + assert(kd != NULL); > + kvm_getswapinfo(kd, kvmswapinfo, 1, 0); >-+ this->totalSwap = kvmswapinfo[0].ksw_total * PAGE_SIZE / KB; >-+ this->usedSwap = kvmswapinfo[0].ksw_used * PAGE_SIZE / KB; >++ this->totalSwap = kvmswapinfo[0].ksw_total * (PAGE_SIZE / KB); >++ this->usedSwap = kvmswapinfo[0].ksw_used * (PAGE_SIZE / KB); > + kvm_close(kd); > + len = sizeof(this->totalMem); > + SYSCTLBYNAME("vm.stats.vm.v_page_count", this->totalMem, len); >--- patch-patch-ProcessList.c ends here ---
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 169174
:
125551
| 125552