From 49c2577f37cbd5d870dae16fad9ecc1213f265bd2cde1f48c1bfed52a59090e1 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sun, 4 Aug 2013 15:07:47 +0000 Subject: [PATCH] Accepting request 185612 from Base:System - Add patch procps-ng-3.3.8-vmstat-terabyte.dif to readd last trifle rest of the old terabyte patch (is this really required?) OBS-URL: https://build.opensuse.org/request/show/185612 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/procps?expand=0&rev=77 --- procps-ng-3.3.8-vmstat-terabyte.dif | 13 +++++++++++++ procps.changes | 6 ++++++ procps.spec | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 procps-ng-3.3.8-vmstat-terabyte.dif diff --git a/procps-ng-3.3.8-vmstat-terabyte.dif b/procps-ng-3.3.8-vmstat-terabyte.dif new file mode 100644 index 0000000..2697e12 --- /dev/null +++ b/procps-ng-3.3.8-vmstat-terabyte.dif @@ -0,0 +1,13 @@ +--- vmstat.c ++++ vmstat.c 2013-08-02 12:57:52.677680360 +0000 +@@ -224,8 +224,8 @@ static void new_header(void) + + static unsigned long unitConvert(unsigned long size) + { +- float cvSize; +- cvSize = (float)size / dataUnit * ((statMode == SLABSTAT) ? 1 : 1024); ++ long double cvSize; ++ cvSize = (long double)size / dataUnit * ((statMode == SLABSTAT) ? 1 : 1024); + return ((unsigned long)cvSize); + } + diff --git a/procps.changes b/procps.changes index 7921d49..35c2026 100644 --- a/procps.changes +++ b/procps.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Aug 2 13:00:57 UTC 2013 - werner@suse.de + +- Add patch procps-ng-3.3.8-vmstat-terabyte.dif to readd last + trifle rest of the old terabyte patch (is this really required?) + ------------------------------------------------------------------- Thu Jul 25 11:31:34 UTC 2013 - werner@suse.de diff --git a/procps.spec b/procps.spec index 2297ff6..a80a6a9 100644 --- a/procps.spec +++ b/procps.spec @@ -83,6 +83,8 @@ Patch25: 0001-top-enable-screen-contents-preservation-at-endofjob.patch Patch26: 0002-top-cursor-repositioning-includes-line-oriented-inpu.patch # PATCH-FIX-UPSTREAM -- Suppress end-of-job report if top if not ended with 'q' key Patch27: 0001-top-refine-some-miscellaneous-signals-interrupt-stuf.patch +# PATCH-FIX-OPENSUSE -- trifle rest of the old terabyte patch +Patch28: procps-ng-3.3.8-vmstat-terabyte.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -154,6 +156,7 @@ the process information pseudo-file system, %patch25 -p1 %patch26 -p1 %patch27 -p1 +%patch28 %build test -s .tarball-version || echo %{version} > .tarball-version