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

Comparing projects/libstatgrab/src/libstatgrab/process_stats.c (file contents):
Revision 1.6 by pajs, Thu Apr 3 23:14:57 2003 UTC vs.
Revision 1.8 by tdb, Sun Aug 24 20:24:09 2003 UTC

# Line 1 | Line 1
1   /*
2   * i-scream central monitoring system
3 < * http://www.i-scream.org.uk
4 < * Copyright (C) 2000-2002 i-scream
3 > * http://www.i-scream.org
4 > * Copyright (C) 2000-2003 i-scream
5   *
6   * This program is free software; you can redistribute it and/or
7   * modify it under the terms of the GNU General Public License
# Line 73 | Line 73 | process_stat_t *get_process_stats(){
73          int procs;
74   #endif
75  
76 #if defined(SOLARIS) || defined(LINUX)
76          process_stat.sleeping=0;
77          process_stat.running=0;
78          process_stat.zombie=0;
79          process_stat.stopped=0;
80          process_stat.total=0;
81  
82 + #if defined(SOLARIS) || defined(LINUX)
83          if((proc_dir=opendir(PROC_LOCATION))==NULL){
84                  return NULL;
85          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines