ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/statgrab/statgrab.c
(Generate patch)

Comparing projects/libstatgrab/src/statgrab/statgrab.c (file contents):
Revision 1.1 by tdb, Tue Aug 26 12:09:44 2003 UTC vs.
Revision 1.4 by tdb, Wed Aug 27 20:54:19 2003 UTC

# Line 18 | Line 18
18   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19   */
20  
21 + #ifdef HAVE_CONFIG_H
22 + #include "config.h"
23 + #endif
24 +
25   #include <statgrab.h>
26   #include <string.h>
27   #include <stdio.h>
# Line 75 | Line 79 | void clear_stats() {
79  
80          for (i = 0; i < num_stats; i++)
81                  free(stats[i].name);
78        free(stats);
79        stats = NULL;
82          num_stats = 0;
81        alloc_stats = 0;
83   }
84  
85   /* Add a stat. The varargs make up the name, joined with dots; the name is
# Line 416 | Line 417 | void usage() {
417                 "  -t DELAY   When repeating, wait DELAY seconds between updates (default 1)\n"
418                 "  -p         Display CPU usage as percentages rather than absolute values\n"
419                 "\n");
420 <        printf("Report bugs to <bugs@i-scream.org>.\n");
420 >        printf("Version %s - report bugs to <%s>.\n",
421 >                PACKAGE_VERSION, PACKAGE_BUGREPORT);
422          exit(1);
423   }
424  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines