Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/systat Fix problems with SIGWINCH. From Paul Ripke i...
details: https://anonhg.NetBSD.org/src/rev/41abe19e89d4
branches: trunk
changeset: 748344:41abe19e89d4
user: wiz <wiz%NetBSD.org@localhost>
date: Wed Oct 21 13:56:36 2009 +0000
description:
Fix problems with SIGWINCH. From Paul Ripke in PR 42161.
diffstat:
usr.bin/systat/syscall.c | 7 +++----
usr.bin/systat/vmstat.c | 6 +++---
2 files changed, 6 insertions(+), 7 deletions(-)
diffs (56 lines):
diff -r 538e20df5b28 -r 41abe19e89d4 usr.bin/systat/syscall.c
--- a/usr.bin/systat/syscall.c Wed Oct 21 11:35:19 2009 +0000
+++ b/usr.bin/systat/syscall.c Wed Oct 21 13:56:36 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.c,v 1.6 2009/04/13 23:20:27 lukem Exp $ */
+/* $NetBSD: syscall.c,v 1.7 2009/10/21 13:56:36 wiz Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: syscall.c,v 1.6 2009/04/13 23:20:27 lukem Exp $");
+__RCSID("$NetBSD: syscall.c,v 1.7 2009/10/21 13:56:36 wiz Exp $");
/* System call stats */
@@ -201,9 +201,8 @@
etime = cur.cp_etime;
/* < 5 ticks - ignore this trash */
if ((etime * hertz) < 1.0) {
- if (failcnt++ > MAXFAIL)
+ if (failcnt++ <= MAXFAIL)
return;
- failcnt = 0;
clear();
mvprintw(2, 10, "The alternate system clock has died!");
mvprintw(3, 10, "Reverting to ``pigs'' display.");
diff -r 538e20df5b28 -r 41abe19e89d4 usr.bin/systat/vmstat.c
--- a/usr.bin/systat/vmstat.c Wed Oct 21 11:35:19 2009 +0000
+++ b/usr.bin/systat/vmstat.c Wed Oct 21 13:56:36 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.73 2009/04/13 23:20:27 lukem Exp $ */
+/* $NetBSD: vmstat.c,v 1.74 2009/10/21 13:56:36 wiz Exp $ */
/*-
* Copyright (c) 1983, 1989, 1992, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94";
#endif
-__RCSID("$NetBSD: vmstat.c,v 1.73 2009/04/13 23:20:27 lukem Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.74 2009/10/21 13:56:36 wiz Exp $");
#endif /* not lint */
/*
@@ -498,7 +498,7 @@
etime = cur.cp_etime;
/* < 5 ticks - ignore this trash */
if ((etime * hertz) < 1.0) {
- if (failcnt++ > MAXFAIL)
+ if (failcnt++ <= MAXFAIL)
return;
clear();
mvprintw(2, 10, "The alternate system clock has died!");
Home |
Main Index |
Thread Index |
Old Index