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

Comparing projects/cms/source/ihost/libstatgrab/load_stat.c (file contents):
Revision 1.3 by pajs, Mon May 13 12:51:26 2002 UTC vs.
Revision 1.5 by pajs, Fri May 17 13:56:20 2002 UTC

# Line 1 | Line 1
1   #include <stdio.h>
2   #include <stdlib.h>
3 + #ifdef SOLARIS
4 + #include <sys/loadavg.h>
5 + #endif
6   #include "ukcprog.h"
7  
8   char *get_load_stats(){
# Line 33 | Line 36 | char *get_load_stats(){
36          }
37   #endif
38  
39 <        xml_load_out=strf("<load><load1>%.2lf</load1><load5>%.2lf</load5><loag15>%.2lf</load15></load>", loadav[0], loadav[1], loadav[2]);
39 >        xml_load_out=strf("<load><load1>%.2lf</load1><load5>%.2lf</load5><load15>%.2lf</load15></load>", loadav[0], loadav[1], loadav[2]);
40  
41          return xml_load_out;
42   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines