ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/ihost-perl/plugins/linux/linux.c
(Generate patch)

Comparing projects/cms/source/host/ihost-perl/plugins/linux/linux.c (file contents):
Revision 1.10 by pajs, Fri May 3 13:16:57 2002 UTC vs.
Revision 1.12 by pajs, Fri May 3 13:24:10 2002 UTC

# Line 1 | Line 1
1   #include <stdio.h>
2   #include <stdlib.h>
3 < #include <local/ukcprog.h>
3 > #include "ukcprog.h"
4   #include <string.h>
5   #include <unistd.h>
6   #include <sys/utsname.h>
# Line 284 | Line 284 | void processStats() {
284        }
285  
286        line_ptr=line;
287 <      for(;*line_ptr != ' ';line_ptr++);
288 <      line_ptr--;
289 <      
287 >      for(;*line_ptr++ != '\t';);
288 >    
289 >
290        if(*line_ptr=='R') running++;
291        if(*line_ptr=='S') sleeping++;
292        if(*line_ptr=='Z') zombie++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines