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.14 by tdb, Mon Feb 16 14:55:32 2004 UTC vs.
Revision 1.17 by tdb, Wed Apr 7 14:53:40 2004 UTC

# Line 1 | Line 1
1   /*
2 < * i-scream central monitoring system
2 > * i-scream libstatgrab
3   * http://www.i-scream.org
4   * Copyright (C) 2000-2004 i-scream
5   *
# Line 47 | Line 47
47   #include <sys/time.h>
48   #endif
49  
50 < general_stat_t *get_general_stats(){
50 > sg_host_info *sg_get_host_info(){
51  
52 <        static general_stat_t general_stat;    
52 >        static sg_host_info general_stat;      
53          static struct utsname os;
54  
55   #ifdef SOLARIS
# Line 73 | Line 73 | general_stat_t *get_general_stats(){
73          }
74          
75          general_stat.os_name = os.sysname;
76 <        general_stat.os_release = os.release;
77 <        general_stat.os_version = os.version;
78 <        general_stat.platform = os.machine;
79 <        general_stat.hostname = os.nodename;
76 >        general_stat.os_release = os.release;
77 >        general_stat.os_version = os.version;
78 >        general_stat.platform = os.machine;
79 >        general_stat.hostname = os.nodename;
80  
81          /* get uptime */
82   #ifdef SOLARIS

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines