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.4 by tdb, Fri Mar 8 16:04:38 2002 UTC vs.
Revision 1.5 by pajs, Mon Mar 11 13:42:40 2002 UTC

# Line 218 | Line 218 | void cpustats() {
218      usage=((((float)idle)/((float)total))*100.00);
219      printf("packet.cpu.idle %3.2f\n", usage);
220      
221 <    /* Cos i-scream's expexts this to be sent :/ */
221 >    /* Cos i-scream's expects this to be sent :/ */
222      printf("packet.cpu.iowait 0\n");
223 <    
223 >    printf("packet.cpu.swap 0\n");  
224 >
225      free(line[0]);
226      free(line[1]);
227   }
# Line 269 | Line 270 | void processStats() {
270      
271      printf("\npacket.users.count %d\n", nousers);
272        
273 <    printf("packet.processes.total %d\n",sleeping);
274 <    printf("packet.processes.sleeping %d\n",running);
273 >    printf("packet.processes.sleeping %d\n",sleeping);
274 >    printf("packet.processes.cpu %d\n",running);
275      printf("packet.processes.zombie %d\n",zombie);
276      printf("packet.processes.stopped %d\n", stopped);
277      printf("packet.processes.total %d\n", (sleeping+running+zombie+stopped));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines