From w@mail.cs.tu-berlin.de  Thu Jul 20 14:04:44 1995
Received: from mail.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13])
          by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id OAA23922
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 20 Jul 1995 14:04:40 -0700
Received: from localhost.cs.tu-berlin.de ([130.149.1.123]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id WAA00696; Thu, 20 Jul 1995 22:51:10 +0200
Received: (from w@localhost) by localhost.cs.tu-berlin.de (8.6.9/8.6.9) id WAA03081; Thu, 20 Jul 1995 22:50:21 +0200
Message-Id: <199507202050.WAA03081@localhost.cs.tu-berlin.de>
Date: Thu, 20 Jul 1995 22:50:21 +0200
From: Wolfram Schneider <w@cs.tu-berlin.de>
Reply-To: wosch@cs.tu-berlin.de
To: FreeBSD-gnats-submit@freebsd.org, wosch@cs.tu-berlin.de,
        cgd@postgres.berkeley.edu
Subject: sa(1) print not processes which call only ounces
X-Send-Pr-Version: 3.2

>Number:         628
>Category:       bin
>Synopsis:       sa(1) print not processes which call only ounces
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 20 14:10:03 1995
>Closed-Date:    Sun Jul 23 20:22:22 PDT 1995
>Last-Modified:  Tue Nov 27 18:42:24 PST 2001
>Originator:     Wolfram Schneider
>Release:        FreeBSD 2.0-ALPHA i386
>Organization:
Hohenschoensiehstenich
>Environment:

	OS out of date

>Description:

	sa(1) print not processes which call only onces

>How-To-Repeat:

	cp /bin/ls /tmp/ELES
	/tmp/ELES 
	sa | grep ELES | wc
        0       0       0

	# second try
	/tmp/ELES
        sa |grep ELES     
       2        0.00re        0.00cp        0avio    10229k   ELES


>Fix:
	
--- pdb.c.old   Mon Sep 26 22:22:56 1994
+++ pdb.c       Thu Jul 20 19:30:03 1995
@@ -249,7 +249,7 @@
                        goto next;
                }
                if (!aflag &&
-                   ((ci.ci_flags & CI_UNPRINTABLE) != 0 || ci.ci_calls <= 1)) {
+                   ((ci.ci_flags & CI_UNPRINTABLE) != 0 || ci.ci_calls < 1)) {
                        /* put into ***other */
                        add_ci(&ci, &ci_other);
                        goto next;


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Sun Jul 23 20:22:22 PDT 1995 
State-Changed-Why:  
Sa intentionally doesn't print commands that have only 
been run once.  The "-a" option is used to print all  
command names, including thoses that have only been run once. 
>Unformatted:



