| Fix gstat(8) incorrectly using SI prefix names for binary prefixed values. |
| |
| diff -ru --exclude-from freebsd-src-diff-exclude-names --new-file /var/archive3/public/freebsd-releng-10.4-src/usr.sbin/gstat/gstat.c freebsd-10.4/usr.sbin/gstat/gstat.c |
| --- /var/archive3/public/freebsd-releng-10.4-src/usr.sbin/gstat/gstat.c 2017-09-29 08:20:26.000000000 +0800 |
| +++ freebsd-10.4/usr.sbin/gstat/gstat.c 2021-04-21 17:56:13.071415000 +0800 |
| @@ -231,14 +231,12 @@ |
| } |
| PRINTMSG("\n"); |
| PRINTMSG(" L(q) ops/s "); |
| - PRINTMSG(" r/s kBps ms/r "); |
| - PRINTMSG(" w/s kBps ms/w "); |
| - if (flag_d) |
| - PRINTMSG(" d/s kBps ms/d "); |
| - if (flag_o) |
| - PRINTMSG(" o/s ms/o "); |
| + PRINTMSG(" r/s KiB/s ms/r "); |
| + PRINTMSG(" w/s KiB/s ms/w "); |
| + if (flag_d) PRINTMSG(" d/s KiB/s ms/d "); |
| + if (flag_o) PRINTMSG(" o/s ms/o "); |
| PRINTMSG("%%busy Name\n"); |
| - for (;;) { |
| + while(1) { |
| gsp = geom_stats_snapshot_next(sp); |
| gsq = geom_stats_snapshot_next(sq); |
| if (gsp == NULL || gsq == NULL) |