Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-process/time/files: time-1.7-incorrect_memory_usage.patch
Date: Sun, 01 Feb 2015 11:26:44
Message-Id: 20150201112641.5A20010D1E@oystercatcher.gentoo.org
1 polynomial-c 15/02/01 11:26:41
2
3 Added: time-1.7-incorrect_memory_usage.patch
4 Log:
5 Fixed incorrect memory usage (bug #332253)
6
7 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
8
9 Revision Changes Path
10 1.1 sys-process/time/files/time-1.7-incorrect_memory_usage.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/time/files/time-1.7-incorrect_memory_usage.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/time/files/time-1.7-incorrect_memory_usage.patch?rev=1.1&content-type=text/plain
14
15 Index: time-1.7-incorrect_memory_usage.patch
16 ===================================================================
17 https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248
18 https://bugs.gentoo.org/332253
19
20 diff -rupN time-1.7-original/ChangeLog time-1.7/ChangeLog
21 --- time-1.7-original/ChangeLog 2011-11-11 09:17:47.507026731 +0100
22 +++ time-1.7/ChangeLog 2011-11-11 09:27:46.751002205 +0100
23 @@ -1,3 +1,9 @@
24 +Fri Oct 1 00:00:00 2010 Bob Proulx <bob@××××××.com>
25 + The struct rusage reports ru_maxrss in kbytes not pages and
26 + should not be converted through pages-to-kbytes again.
27 + Reported by Sven Hartrumpf.
28 + * time.c (summarize): Do not call ptok on ru_maxrss.
29 +
30 Thu Jul 11 12:37:17 1996 David J MacKenzie <djm@××××××××××××××××××.com>
31
32 * Version 1.7.
33 diff -rupN time-1.7-original/time.c time-1.7/time.c
34 --- time-1.7-original/time.c 2011-11-11 09:17:47.507026731 +0100
35 +++ time-1.7/time.c 2011-11-11 09:27:58.167001738 +0100
36 @@ -398,7 +398,7 @@ summarize (fp, fmt, command, resp)
37 ptok ((UL) resp->ru.ru_ixrss) / MSEC_TO_TICKS (v));
38 break;
39 case 'M': /* Maximum resident set size. */
40 - fprintf (fp, "%lu", ptok ((UL) resp->ru.ru_maxrss));
41 + fprintf (fp, "%lu", (UL) resp->ru.ru_maxrss);
42 break;
43 case 'O': /* Outputs. */
44 fprintf (fp, "%ld", resp->ru.ru_oublock);