Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Aug 2006 16:11:53 GMT
From:      Roberto Lima <roberto@forbrazil.com.br>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/101975: [PATCH] Adding percents in /usr/src/usr.bin/systat/pigs.c
Message-ID:  <200608131611.k7DGBrQb012368@www.freebsd.org>
Resent-Message-ID: <200608131620.k7DGKEb5055666@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         101975
>Category:       bin
>Synopsis:       [PATCH] Adding percents in /usr/src/usr.bin/systat/pigs.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 13 16:20:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Roberto Lima
>Release:        FreeBSD 6.1-STABLE
>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 systat -pigs don't shows percents in /0 ... /100, so I make this patch.
>How-To-Repeat:
# systat -pigs

                    /0   /10  /20  /30  /40  /50  /60  /70  /80  /90  /100
root     idle: cpu0 XXXXXXXXXXXXXXX

>Fix:
--- /usr/src/usr.bin/systat/pigs.c.old  Fri Jun  2 10:40:01 2006
+++ /usr/src/usr.bin/systat/pigs.c      Sun Aug 13 13:01:26 2006
@@ -236,7 +236,7 @@
        wmove(wnd, 0, 0);
        wclrtoeol(wnd);
        mvwaddstr(wnd, 0, 20,
-           "/0   /10  /20  /30  /40  /50  /60  /70  /80  /90  /100");
+           "/0%   /10%  /20%  /30%  /40%  /50%  /60%  /70%  /80%  /90%  /100%");
 }
 
 int

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608131611.k7DGBrQb012368>