FreeBSD Bugzilla – Attachment 13212 Details for
Bug 25268
vmstat displays some parameters incorrectly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.66 KB, created by
Yevgeniy Aleynikov
on 2001-02-21 23:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Yevgeniy Aleynikov
Created:
2001-02-21 23:30:01 UTC
Size:
1.66 KB
patch
obsolete
>*** vmstat.c.orig Thu Feb 15 14:58:46 2001 >--- vmstat.c Thu Feb 15 15:00:42 2001 >*************** >*** 482,488 **** > total.t_rq - 1, total.t_dw + total.t_pw, total.t_sw); > #define pgtok(a) ((a) * sum.v_page_size >> 10) > #define rate(x) (((x) + halfuptime) / uptime) /* round */ >! (void)printf("%8ld%6ld ", > (long)pgtok(total.t_avm), (long)pgtok(total.t_free)); > (void)printf("%4lu ", > (u_long)rate(sum.v_vm_faults - osum.v_vm_faults)); >--- 482,488 ---- > total.t_rq - 1, total.t_dw + total.t_pw, total.t_sw); > #define pgtok(a) ((a) * sum.v_page_size >> 10) > #define rate(x) (((x) + halfuptime) / uptime) /* round */ >! (void)printf("%8ld %6ld ", > (long)pgtok(total.t_avm), (long)pgtok(total.t_free)); > (void)printf("%4lu ", > (u_long)rate(sum.v_vm_faults - osum.v_vm_faults)); >*************** >*** 534,540 **** > else if (num_shown == 1) > (void)printf("disk"); > (void)printf(" faults cpu\n"); >! (void)printf(" r b w avm fre flt re pi po fr sr "); > for (i = 0; i < num_devices; i++) > if ((dev_select[i].selected) > && (dev_select[i].selected <= maxshowdevs)) >--- 534,540 ---- > else if (num_shown == 1) > (void)printf("disk"); > (void)printf(" faults cpu\n"); >! (void)printf(" r b w avm fre flt re pi po fr sr "); > for (i = 0; i < num_devices; i++) > if ((dev_select[i].selected) > && (dev_select[i].selected <= maxshowdevs))
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 25268
: 13212