procps/procps-ng-3.3.8-petabytes.patch

28 lines
1.2 KiB
Diff
Raw Permalink Normal View History

Accepting request 418010 from Base:System - Avoid fillup and insserv on modern systems (bsc#992845) - Use test suite but avoid the w command due dummy utmp * This requires dejagnu for the runtest command * This requires screen to be able to provide a tty - Add patch procps-ng-3.3.12-strtod.patch to fix missed extern declaration of strtod_nol_or_err() - Update to procps-ng-3.3.12 * libprocps API 6:0:0 * build: formerly optional --enable-oomem unconditional * free: man document rewritten for shared Debian #755233 * free: interpret intervals in non-locale way Debian #692113 * kill: report error if cannot kill process Debian #733172 * library: refine calculation of 'cached' memory * library: find tty quicker Debian #770215 * library: eliminate threads display inconsistencies Redhat #1284091 * pidof: check cmd if space found in argv0 * pmap: fixed detail parsing on long mapping lines * pmap: fix occasional incorrect memory usage values Redhat #1262864 * ps: sort by cgroup Debian #692279 * ps: display control group name with -o cgname * ps: fallback to attr/current for context Debian #786956 * ps: enabled broken 'thcount' option Redhat #1174313 * tests: conditionally add prctl Debian #816237 * top: displays the 3 new linux-4.5 RES memory fields * top: man page memory fields corrected + new narrative * top: added display of CGNAME (control group name) * top: is now more responsive to cpus brought online * top: namespace cols use suppressible zero OBS-URL: https://build.opensuse.org/request/show/418010 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/procps?expand=0&rev=99
2016-08-18 09:15:06 +02:00
---
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;