Date: Wed, 19 Jul 2006 23:19:22 GMT From: Roberto Lima <roberto@forbrazil.com.br> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/100585: [PATCH] top -s0 causes load excessive Message-ID: <200607192319.k6JNJM7Y013857@www.freebsd.org> Resent-Message-ID: <200607192320.k6JNKHoH014099@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 100585 >Category: bin >Synopsis: [PATCH] top -s0 causes load excessive >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 19 23:20:16 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Roberto Lima >Release: FreeBSD 6.1 >Organization: ForBrazil >Environment: FreeBSD bsd.forbr.com.br 6.1-STABLE FreeBSD 6.1-STABLE #1: Tue Jun 27 17:20:15 BRT 2006 root@bsd.forbr.com.br:/usr/src/sys/i386/compile/ForBrazil i386 >Description: I see that my costumers have been used 'top -s0' too many times and this is overloading in my system. >How-To-Repeat: just use 'top -s0' and see the load average going up. >Fix: --- top.c.old Wed Jul 19 19:49:23 2006 +++ top.c Wed Jul 19 19:49:32 2006 @@ -331,7 +331,7 @@ break; case 's': - if ((delay = atoi(optarg)) < 0 || (delay == 0 && getuid() != 0)) + if ((delay = atoi(optarg)) < 1 || (delay == 0 && getuid() != 0)) { fprintf(stderr, "%s: warning: seconds delay should be positive -- using default\n", >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607192319.k6JNJM7Y013857>