projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31a04d9
)
free: ensure there is a least one space between numbers
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 27 Nov 2018 14:43:10 +0000
(15:43 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 27 Nov 2018 14:43:10 +0000
(15:43 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/free.c
patch
|
blob
|
history
diff --git
a/procps/free.c
b/procps/free.c
index e41601e08ee5bc64a67b9e091f5b2b80906f525d..ee0cd981a046a06fa25e0c8b96249b81f0e7e542 100644
(file)
--- a/
procps/free.c
+++ b/
procps/free.c
@@
-124,9
+124,9
@@
int free_main(int argc UNUSED_PARAM, char **argv IF_NOT_DESKTOP(UNUSED_PARAM))
cached += info.bufferram;
cached_plus_free = cached + info.freeram;
-#define FIELDS_6 "%12llu
%12llu%12llu%12llu%12llu%12
llu\n"
-#define FIELDS_3 (FIELDS_6 +
3*6
)
-#define FIELDS_2 (FIELDS_6 +
4*6
)
+#define FIELDS_6 "%12llu
%11llu %11llu %11llu %11llu %11
llu\n"
+#define FIELDS_3 (FIELDS_6 +
6 + 7 + 7
)
+#define FIELDS_2 (FIELDS_6 +
6 + 7 + 7 + 7
)
printf(FIELDS_6,
scale(&G, info.totalram), //total