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

Comparing projects/cms/source/ihost/libstatgrab/disk_stat.c (file contents):
Revision 1.2 by pajs, Mon May 13 11:33:07 2002 UTC vs.
Revision 1.3 by pajs, Mon May 13 11:37:41 2002 UTC

# Line 35 | Line 35 | typedef struct system_disks_t{
35   char *get_disk_stats(){
36          system_disks_t *sd=NULL;
37          system_disks_t *sd_ptr=sd;
38        FILE *f;
38          int counter=0;
39   #ifdef SOLARIS
40          struct mnttab mp;
41          struct statvfs df;
42 +        FILE *f;
43   #endif
44   #ifdef LINUX
45          struct mntent *mp;
46          struct statfs df;
47 +        FILE *f;
48   #endif
49   #ifdef FREEBSD
50          int nummnt;
# Line 122 | Line 123 | char *get_disk_stats(){
123                  sd_ptr->disk->f_inodes=mp->f_ffree;
124                  sd_ptr->next_disk=sd;
125                  sd=sd_ptr;
126 +                mp++;
127          }
128   #endif
129  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines