Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/systat increase slot slop space from 100 to 1000 bef...
details: https://anonhg.NetBSD.org/src/rev/109efaeb3eb5
branches: trunk
changeset: 849445:109efaeb3eb5
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Mar 02 09:50:12 2020 +0000
description:
increase slot slop space from 100 to 1000 before giving up.
from Paul Ripke on current-users. thanks!
diffstat:
usr.bin/systat/bufcache.c | 8 ++++----
usr.bin/systat/vmstat.c | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diffs (58 lines):
diff -r e5aeb545c5d6 -r 109efaeb3eb5 usr.bin/systat/bufcache.c
--- a/usr.bin/systat/bufcache.c Mon Mar 02 08:39:36 2020 +0000
+++ b/usr.bin/systat/bufcache.c Mon Mar 02 09:50:12 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bufcache.c,v 1.29 2018/12/26 01:47:37 sevan Exp $ */
+/* $NetBSD: bufcache.c,v 1.30 2020/03/02 09:50:12 mrg Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: bufcache.c,v 1.29 2018/12/26 01:47:37 sevan Exp $");
+__RCSID("$NetBSD: bufcache.c,v 1.30 2020/03/02 09:50:12 mrg Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -290,8 +290,8 @@
}
if (sysctl(mib, 6, buffers, &size, NULL, 0) < 0) {
free(buffers);
- if (extraslop == 0) {
- extraslop = 100;
+ if (extraslop < 1000) {
+ extraslop += 100;
goto again;
}
error("can't get buffers: %s\n", strerror(errno));
diff -r e5aeb545c5d6 -r 109efaeb3eb5 usr.bin/systat/vmstat.c
--- a/usr.bin/systat/vmstat.c Mon Mar 02 08:39:36 2020 +0000
+++ b/usr.bin/systat/vmstat.c Mon Mar 02 09:50:12 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.87 2019/06/30 19:57:23 he Exp $ */
+/* $NetBSD: vmstat.c,v 1.88 2020/03/02 09:50:12 mrg 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.87 2019/06/30 19:57:23 he Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.88 2020/03/02 09:50:12 mrg Exp $");
#endif /* not lint */
/*
@@ -552,8 +552,8 @@
}
if (sysctl(mib, 6, buffers, &size, NULL, 0) < 0) {
free(buffers);
- if (extraslop == 0) {
- extraslop = 100;
+ if (extraslop < 1000) {
+ extraslop += 100;
goto again;
}
error("can't get buffers: %s\n", strerror(errno));
Home |
Main Index |
Thread Index |
Old Index