Blame SOURCES/time-1.7-ru_maxrss-is-in-kilobytes-on-Linux.patch

136502
From ad24a929bdcc15abae14a64ea21b821bcd8cb030 Mon Sep 17 00:00:00 2001
136502
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
136502
Date: Wed, 11 May 2011 15:19:11 +0200
136502
Subject: [PATCH] ru_maxrss is in kilobytes on Linux
136502
136502
Since 2.6.32 Linux returns ru_maxrss in kilobytes. Not in pages.
136502
136502
See http://lists.gnu.org/archive/html/bug-gnu-utils/2008-12/msg00047.html
136502
for discussion.
136502
---
136502
 time.c |    4 ++++
136502
 1 files changed, 4 insertions(+), 0 deletions(-)
136502
136502
diff --git a/time.c b/time.c
136502
index d15fee4..43aec0b 100644
136502
--- a/time.c
136502
+++ b/time.c
136502
@@ -395,7 +395,11 @@ summarize (fp, fmt, command, resp)
136502
 		       ptok ((UL) resp->ru.ru_ixrss) / MSEC_TO_TICKS (v));
136502
 	      break;
136502
 	    case 'M':		/* Maximum resident set size.  */
136502
+#ifdef __linux__
136502
+	      fprintf (fp, "%ld", resp->ru.ru_maxrss);
136502
+#else
136502
 	      fprintf (fp, "%lu", ptok ((UL) resp->ru.ru_maxrss));
136502
+#endif
136502
 	      break;
136502
 	    case 'O':		/* Outputs.  */
136502
 	      fprintf (fp, "%ld", resp->ru.ru_oublock);
136502
-- 
136502
1.7.4.4
136502