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/6020f3c186e0
branches: trunk
changeset: 944938:6020f3c186e0
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 4c2445c44697 -r 6020f3c186e0 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