FreeBSD Bugzilla – Attachment 144803 Details for
Bug 191976
[patch] vmstat(8): fix formatting to fit in 80 cols
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
vmstat.diff
vmstat.diff (text/plain), 2.30 KB, created by
Andy Kosela
on 2014-07-20 00:54:36 UTC
(
hide
)
Description:
vmstat.diff
Filename:
MIME Type:
Creator:
Andy Kosela
Created:
2014-07-20 00:54:36 UTC
Size:
2.30 KB
patch
obsolete
>Index: vmstat.c >=================================================================== >--- vmstat.c (revision 268845) >+++ vmstat.c (working copy) >@@ -780,9 +780,9 @@ > printf(" "); > } else { > printf(" %7d ", vmstat_pgtok(total.t_avm)); >- printf(" %6d ", vmstat_pgtok(total.t_free)); >+ printf("%6d ", vmstat_pgtok(total.t_free)); > } >- (void)printf("%5lu ", >+ (void)printf("%4lu ", > (unsigned long)rate(sum.v_vm_faults - osum.v_vm_faults)); > (void)printf("%3lu ", > (unsigned long)rate(sum.v_reactivated - osum.v_reactivated)); >@@ -792,12 +792,12 @@ > (void)printf("%3lu ", > (unsigned long)rate(sum.v_swapout + sum.v_vnodeout - > (osum.v_swapout + osum.v_vnodeout))); >- (void)printf("%5lu ", >+ (void)printf("%3lu ", > (unsigned long)rate(sum.v_tfree - osum.v_tfree)); > (void)printf("%3lu ", > (unsigned long)rate(sum.v_pdpages - osum.v_pdpages)); > devstats(); >- (void)printf("%4lu %4lu %4lu", >+ (void)printf("%4lu %5lu %4lu", > (unsigned long)rate(sum.v_intr - osum.v_intr), > (unsigned long)rate(sum.v_syscall - osum.v_syscall), > (unsigned long)rate(sum.v_swtch - osum.v_swtch)); >@@ -830,12 +830,12 @@ > int i, num_shown; > > num_shown = (num_selected < maxshowdevs) ? num_selected : maxshowdevs; >- (void)printf(" procs memory page%*s", 19, ""); >+ (void)printf(" procs memory page%*s ", 19, ""); > if (num_shown > 1) >- (void)printf(" disks %*s", num_shown * 4 - 7, ""); >+ (void)printf("disks %*s", num_shown * 4 - 7, ""); > else if (num_shown == 1) > (void)printf("disk"); >- (void)printf(" faults "); >+ (void)printf(" faults "); > if (Pflag) { > for (i = 0; i < ncpus; i++) { > if (cpumask & (1ul << i)) >@@ -843,8 +843,8 @@ > } > printf("\n"); > } else >- printf("cpu\n"); >- (void)printf(" r b w avm fre flt re pi po fr sr "); >+ printf(" 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)) >@@ -851,7 +851,7 @@ > (void)printf("%c%c%d ", dev_select[i].device_name[0], > dev_select[i].device_name[1], > dev_select[i].unit_number); >- (void)printf(" in sy cs"); >+ (void)printf(" in sy cs"); > if (Pflag) { > for (i = 0; i < ncpus; i++) > printf(" us sy id");
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 191976
:
144803
|
147490
|
147495
|
147560
|
147697
|
147698
|
148344