csjp d42e76cb19 - Implement -h (human readable) for the size of the underlying block disk.
Currently, the size of the swap device is unconditionally reported using
  blocks, even if -h has been used.
- While here, switch to CONVERT_BLOCKS() instead of CONVERT() which will
  avoid overflowing size counters (in human readable form see: r196244)
- Update the column headers to reflect that a size is being reported instead
  of the block size units being used

Before:

$ swapinfo
Device          1K-blocks     Used    Avail Capacity
/dev/gpt/swapfs   1048576        0  1048576     0%
$

After:

$ swapinfo -h
Device           Size     Used    Avail Capacity
/dev/gpt/swapfs    1.0G       0B     1.0G     0%
$

Differential Revision:	https://reviews.freebsd.org/D23758
Reviewed by:	kevans
MFC after:	3 weeks
2020-02-20 21:12:10 +00:00
..
2020-02-19 12:49:49 +00:00
2019-12-11 17:37:53 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-08-11 13:23:09 +00:00
2020-02-10 17:16:26 +00:00
2019-08-13 20:06:55 +00:00
2020-02-07 19:53:07 +00:00
2020-01-10 22:20:23 +00:00
2019-03-14 14:34:36 +00:00
2020-02-10 02:44:29 +00:00
2019-12-04 16:56:11 +00:00
2019-02-04 21:28:25 +00:00
2018-06-06 18:52:33 +00:00
2019-12-11 17:37:53 +00:00
2020-01-10 14:43:57 +00:00
2018-05-28 09:41:44 +00:00
2017-12-28 05:34:04 +00:00
2019-05-04 02:09:30 +00:00
2018-01-02 16:50:57 +00:00
2020-01-30 18:34:08 +00:00
2019-08-08 21:08:13 +00:00
2018-10-22 02:34:10 +00:00
2018-05-19 20:57:22 +00:00
2019-12-11 17:37:53 +00:00
2020-02-10 18:28:02 +00:00
2019-05-22 01:22:33 +00:00
2019-02-04 21:28:25 +00:00
2018-06-17 17:31:16 +00:00
2019-12-11 17:37:53 +00:00
2019-03-05 02:53:41 +00:00
2019-12-11 17:37:53 +00:00
2020-02-19 12:49:49 +00:00
2019-12-11 17:37:53 +00:00
2020-02-13 15:28:56 +00:00
2019-04-22 17:52:46 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2020-02-10 17:16:41 +00:00
2018-12-19 22:47:37 +00:00
2019-11-21 01:24:49 +00:00
2019-12-11 17:37:53 +00:00
2017-10-31 00:07:04 +00:00
2020-02-04 21:27:39 +00:00
2019-05-24 05:34:21 +00:00
2019-05-24 05:34:21 +00:00
2018-07-24 20:20:17 +00:00