procps/procps-ng-3.3.8-petabytes.patch
Dominique Leuenberger f9de50261b Accepting request 756713 from Base:System
- Update to procps-ng-3.3.16
  * library: Increment to 8:2:0
    No removals or functions
    Internal changes only, so revision is incremented.
    Previous version should have been 8:1:0 not 8:0:1
  * docs: Use correct symbols for -h option in free.1      Debian #898774
  * docs: ps.1 now warns about command name length         issue #101
  * docs: install translated man pages                     issue #146
  * pgrep: Match on runstate                               issue #109, Debian #919381
  * snice: Fix matching on pid                             merge #89
  * top: can now exploit 256-color terminals               issue #96
  * top: preserves 'other filters' in configuration file   issue #99
  * top: can now collapse/expand forest view children      issue #99
  * top: parent %CPU time includes collapsed children
  * top: improve xterm support for vim navigation keys     issue #135
  * top: avoid segmentation fault at program termination   Redhat #1737552
- Port patches (mostly changed offsets of the hunks)
  * procps-ng-3.3.10-fdleak.dif
  * procps-ng-3.3.10-large_pcpu.patch
  * procps-ng-3.3.10-slab.patch
  * procps-ng-3.3.10-xen.dif
  * procps-ng-3.3.8-bnc634840.patch
  * procps-ng-3.3.8-petabytes.patch
  * procps-ng-3.3.8-readeof.patch
  * procps-ng-3.3.8-tinfo.dif
  * procps-ng-3.3.8-vmstat-terabyte.dif
  * procps-v3.3.3-read-sysctls-also-from-boot-sysctl.conf-kernelversion.diff
- Delete patches now upstream
  * procps-ng-3.3.15-typo.patch
  * procps-ng-3.3.8-top.1.diff

OBS-URL: https://build.opensuse.org/request/show/756713
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/procps?expand=0&rev=113
2019-12-18 13:44:08 +00:00

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
@@ -1607,9 +1607,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;
@@ -1621,7 +1621,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;