blob: ab1f4ddfbd5edd8f41c913290690afc265a1579b [file] [log] [blame]
https://bugs.launchpad.net/ubuntu/+source/time/+bug/742248
https://bugs.gentoo.org/332253
--- time-1.7/ChangeLog
+++ time-1.7/ChangeLog
@@ -1,3 +1,9 @@
+Fri Oct 1 00:00:00 2010 Bob Proulx <bob@proulx.com>
+ The struct rusage reports ru_maxrss in kbytes not pages and
+ should not be converted through pages-to-kbytes again.
+ Reported by Sven Hartrumpf.
+ * time.c (summarize): Do not call ptok on ru_maxrss.
+
Thu Jul 11 12:37:17 1996 David J MacKenzie <djm@catapult.va.pubnix.com>
* Version 1.7.
--- time-1.7/time.c
+++ time-1.7/time.c
@@ -398,7 +398,7 @@ summarize (fp, fmt, command, resp)
ptok ((UL) resp->ru.ru_ixrss) / MSEC_TO_TICKS (v));
break;
case 'M': /* Maximum resident set size. */
- fprintf (fp, "%lu", ptok ((UL) resp->ru.ru_maxrss));
+ fprintf (fp, "%lu", (UL) resp->ru.ru_maxrss);
break;
case 'O': /* Outputs. */
fprintf (fp, "%ld", resp->ru.ru_oublock);