aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--miscutils/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/time.c b/miscutils/time.c
index dbc92d12f..30298fe32 100644
--- a/miscutils/time.c
+++ b/miscutils/time.c
@@ -89,7 +89,7 @@ static void printargv(char *const *argv)
89 This is funky since the pagesize could be less than 1K. 89 This is funky since the pagesize could be less than 1K.
90 Note: Some machines express getrusage statistics in terms of K, 90 Note: Some machines express getrusage statistics in terms of K,
91 others in terms of pages. */ 91 others in terms of pages. */
92static unsigned long ptok(unsigned pagesize, unsigned long pages) 92static unsigned long ptok(const unsigned pagesize, const unsigned long pages)
93{ 93{
94 unsigned long tmp; 94 unsigned long tmp;
95 95
@@ -303,7 +303,7 @@ static void summarize(const char *fmt, char **command, resource_t *resp)
303 printf("%lu", ptok(pagesize, (UL) resp->ru.ru_ixrss) / cpu_ticks); 303 printf("%lu", ptok(pagesize, (UL) resp->ru.ru_ixrss) / cpu_ticks);
304 break; 304 break;
305 case 'Z': /* Page size. */ 305 case 'Z': /* Page size. */
306 printf("%u", getpagesize()); 306 printf("%u", pagesize);
307 break; 307 break;
308 case 'c': /* Involuntary context switches. */ 308 case 'c': /* Involuntary context switches. */
309 printf("%lu", resp->ru.ru_nivcsw); 309 printf("%lu", resp->ru.ru_nivcsw);