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

Comparing projects/libstatgrab/src/libstatgrab/os_info.c (file contents):
Revision 1.9 by ats, Sun Oct 19 02:03:02 2003 UTC vs.
Revision 1.10 by ats, Sun Oct 19 02:15:43 2003 UTC

# Line 99 | Line 99 | general_stat_t *get_general_stats(){
99   #ifdef LINUX
100          if ((f=fopen("/proc/uptime", "r")) == NULL) {
101                  return NULL;
102        size = sizeof boottime;
102          }
103          if((fscanf(f,"%lu %*d",&general_stat.uptime)) != 1){
104                  return NULL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines