summaryrefslogtreecommitdiff
path: root/usr/src/cmd/swap
diff options
context:
space:
mode:
authorpetede <none@none>2006-05-15 12:36:51 -0700
committerpetede <none@none>2006-05-15 12:36:51 -0700
commit9ab3bc54304108f4015f003b36180b14682fafa0 (patch)
tree81245c6499443cae41742cf97009a3add2ebe0b7 /usr/src/cmd/swap
parenta5df24e138c7634fb7704d29d0b0054a504013af (diff)
downloadillumos-joyent-9ab3bc54304108f4015f003b36180b14682fafa0.tar.gz
5064163 *swap* should have -h option like df, du, and ls (fix output)
Diffstat (limited to 'usr/src/cmd/swap')
-rw-r--r--usr/src/cmd/swap/swap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/swap/swap.c b/usr/src/cmd/swap/swap.c
index 192f25bd15..a38897f70c 100644
--- a/usr/src/cmd/swap/swap.c
+++ b/usr/src/cmd/swap/swap.c
@@ -342,7 +342,7 @@ doswap(int flag)
number_to_scaled_string(numbuf, allocated,
factor, scale));
(void) printf(gettext("%s reserved = "),
- number_to_scaled_string(numbuf, allocated,
+ number_to_scaled_string(numbuf, reserved,
factor, scale));
(void) printf(gettext("%s used, "),
number_to_scaled_string(numbuf,
@@ -528,7 +528,7 @@ number_to_scaled_string(
/*
* Now we have number as a count of scale units.
* Stop scaling when we reached exa bytes, then something is
- * probably wrong with our number.probably wrong with our number.
+ * probably wrong with our number.
*/
while ((number >= scale) && (*uom != 'E')) {
uom++; /* Next unit of measurement */