aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-09-12 07:46:44 -0500
committerRob Landley <rob@landley.net>2020-09-12 07:46:44 -0500
commit5b7cc6d6c2a549188ce652d44b2583c01fb48188 (patch)
treeff8b6c96e311b3b27809eb66b758f288d47b5342 /toys/posix
parent2450930d8bc51f961ac1d2b92cccecd8a8e64a1c (diff)
downloadtoybox-5b7cc6d6c2a549188ce652d44b2583c01fb48188.tar.gz
Replace HR_COMMAS with HR_NODOT
The comma thing turned into an internationalization can of worms, don't go there. Keep the "show megabytes on systems with >10G" logic which includes not showing 0.0 for single digit values.
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/ps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/ps.c b/toys/posix/ps.c
index 6a7afda6..7013dc57 100644
--- a/toys/posix/ps.c
+++ b/toys/posix/ps.c
@@ -1604,9 +1604,9 @@ static void top_common(
"\nBuffers:","\nSwapTotal:","\nSwapFree:","\nCached:"}[i]);
run[i] = pos ? atol(pos) : 0;
k = (*run>=10000000);
- human_readable_long(hr[j+!!j], run[i]>>(10*k), 9, k+1, HR_COMMAS);
+ human_readable_long(hr[j+!!j], run[i]>>(10*k), 9, k+1, HR_NODOT);
if (j==1) human_readable_long(hr[1], (run[i-1]-run[i])>>(10*k),
- 8, k+1, HR_COMMAS);
+ 8, k+1, HR_NODOT);
else if (j==2) {
sprintf(toybuf, " %s:%10s total,%10s used,%10s free,%10s %s",
(i<3) ? " Mem" : "Swap", hr[0], hr[1], hr[2], hr[3],