26fe7accd9
- Add /usr/share/man/uk dir to file list for lang sub package - Fix directory for Ukrainian man pages translations. - Move localized man pages to lang package. - Remove obsolete conditionals. - Remove obsolete --enable-oomem option. - Run spec-cleaner. - Update to procps-ng-3.3.17 * library: Incremented to 8:3:0 (no removals or additions, internal changes only) * all: properly handle utf8 cmdline translations issue #176 * kill: Pass int to signalled process merge #32 * pgrep: Pass int to signalled process merge #32 * pgrep: Check sanity of SG_ARG_MAX issue #152 * pgrep: Add older than selection merge #79 * pidof: Quiet mode merge #83 * pidof: show worker threads Redhat #1803640 * ps.1: Mention stime alias issue #164 * ps: check also match on truncated 16 char comm names * ps: Add exe output option Redhat #1399206 * ps: A lot more sorting available merge #99 * pwait: New command waits for a process merge #97 * sysctl: Match systemd directory order Debian #950788 * sysctl: Document directory order Debian #951550 * top: ensure config file backward compatibility Debian #951335 * top: add command line 'e' for symmetry with 'E' issue #165 * top: add '4' toggle for two abreast cpu display issue #172 * top: add '!' toggle for combining multiple cpus * top: fix potential SEGV involving -p switch merge #114 OBS-URL: https://build.opensuse.org/request/show/871141 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/procps?expand=0&rev=119
28 lines
1.2 KiB
Diff
28 lines
1.2 KiB
Diff
---
|
|
top/top.c | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
--- top/top.c
|
|
+++ top/top.c 2018-04-04 11:49:56.472660056 +0000
|
|
@@ -1626,9 +1626,9 @@ static inline const char *make_str_utf8
|
|
static const char *scale_mem (int target, unsigned long num, int width, int justr) {
|
|
// SK_Kb SK_Mb SK_Gb SK_Tb SK_Pb SK_Eb
|
|
#ifdef BOOST_MEMORY
|
|
- static const char *fmttab[] = { "%.0f", "%#.1f%c", "%#.3f%c", "%#.3f%c", "%#.3f%c", NULL };
|
|
+ static const char *fmttab[] = { "%.0f", "%#.1f%c", "%#.3f%c", "%#.3f%c", "%#.3f%c", "%#.3f%c", NULL };
|
|
#else
|
|
- static const char *fmttab[] = { "%.0f", "%.1f%c", "%.1f%c", "%.1f%c", "%.1f%c", NULL };
|
|
+ static const char *fmttab[] = { "%.0f", "%.1f%c", "%.1f%c", "%.1f%c", "%.1f%c", "%.1f%c", NULL };
|
|
#endif
|
|
static char buf[SMLBUFSIZ];
|
|
float scaled_num;
|
|
@@ -1640,7 +1640,7 @@ static const char *scale_mem (int target
|
|
goto end_justifies;
|
|
|
|
scaled_num = num;
|
|
- for (i = SK_Kb, psfx = Scaled_sfxtab; i < SK_Eb; psfx++, i++) {
|
|
+ for (i = SK_Kb, psfx = Scaled_sfxtab; i <= SK_Eb; psfx++, i++) {
|
|
if (i >= target
|
|
&& (width >= snprintf(buf, sizeof(buf), fmttab[i], scaled_num, *psfx)))
|
|
goto end_justifies;
|