diff options
author | Britney Fransen <brfransen@gmail.com> | 2016-06-07 21:35:39 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2016-06-07 21:35:39 (GMT) |
commit | cdae2fe589ca2904c7f46f79bdfe611370364b95 (patch) | |
tree | d1ce65f57add20f305a2d55d2fabccbb0e169b60 /abs/extra/time/time-1.7-ru_maxrss-is-in-kilobytes-on-Linux.patch | |
parent | 8c9dc836b4e96cacc66897228de39ae3a7c27ac9 (diff) | |
download | linhes_pkgbuild-cdae2fe589ca2904c7f46f79bdfe611370364b95.zip linhes_pkgbuild-cdae2fe589ca2904c7f46f79bdfe611370364b95.tar.gz linhes_pkgbuild-cdae2fe589ca2904c7f46f79bdfe611370364b95.tar.bz2 |
time: initial inclusion. dep of hdf5
Diffstat (limited to 'abs/extra/time/time-1.7-ru_maxrss-is-in-kilobytes-on-Linux.patch')
-rw-r--r-- | abs/extra/time/time-1.7-ru_maxrss-is-in-kilobytes-on-Linux.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/abs/extra/time/time-1.7-ru_maxrss-is-in-kilobytes-on-Linux.patch b/abs/extra/time/time-1.7-ru_maxrss-is-in-kilobytes-on-Linux.patch new file mode 100644 index 0000000..1f68f9b --- /dev/null +++ b/abs/extra/time/time-1.7-ru_maxrss-is-in-kilobytes-on-Linux.patch @@ -0,0 +1,32 @@ +From ad24a929bdcc15abae14a64ea21b821bcd8cb030 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> +Date: Wed, 11 May 2011 15:19:11 +0200 +Subject: [PATCH] ru_maxrss is in kilobytes on Linux + +Since 2.6.32 Linux returns ru_maxrss in kilobytes. Not in pages. + +See http://lists.gnu.org/archive/html/bug-gnu-utils/2008-12/msg00047.html +for discussion. +--- + time.c | 4 ++++ + 1 files changed, 4 insertions(+), 0 deletions(-) + +diff --git a/time.c b/time.c +index d15fee4..43aec0b 100644 +--- a/time.c ++++ b/time.c +@@ -395,7 +395,11 @@ summarize (fp, fmt, command, resp) + ptok ((UL) resp->ru.ru_ixrss) / MSEC_TO_TICKS (v)); + break; + case 'M': /* Maximum resident set size. */ ++#ifdef __linux__ ++ fprintf (fp, "%ld", resp->ru.ru_maxrss); ++#else + fprintf (fp, "%lu", ptok ((UL) resp->ru.ru_maxrss)); ++#endif + break; + case 'O': /* Outputs. */ + fprintf (fp, "%ld", resp->ru.ru_oublock); +-- +1.7.4.4 + |