Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/csh Print real maxrss value like other shells.
details: https://anonhg.NetBSD.org/src/rev/d1a9c31b36aa
branches: trunk
changeset: 1015185:d1a9c31b36aa
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sat Oct 17 08:46:02 2020 +0000
description:
Print real maxrss value like other shells.
diffstat:
bin/csh/time.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 84c8aabcd140 -r d1a9c31b36aa bin/csh/time.c
--- a/bin/csh/time.c Sat Oct 17 08:29:48 2020 +0000
+++ b/bin/csh/time.c Sat Oct 17 08:46:02 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: time.c,v 1.22 2020/04/23 07:54:53 simonb Exp $ */
+/* $NetBSD: time.c,v 1.23 2020/10/17 08:46:02 mlelstv Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)time.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: time.c,v 1.22 2020/04/23 07:54:53 simonb Exp $");
+__RCSID("$NetBSD: time.c,v 1.23 2020/10/17 08:46:02 mlelstv Exp $");
#endif
#endif /* not lint */
@@ -182,7 +182,7 @@
(r0->ru_ixrss + r0->ru_idrss + r0->ru_isrss)) / t));
break;
case 'M': /* max. Resident Set Size */
- (void)fprintf(fp, "%ld", r1->ru_maxrss / 2L);
+ (void)fprintf(fp, "%ld", r1->ru_maxrss);
break;
case 'O': /* FS blocks out */
(void)fprintf(fp, "%ld", r1->ru_oublock - r0->ru_oublock);
Home |
Main Index |
Thread Index |
Old Index