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 |
|
* |
36 |
|
#include <stdio.h> |
37 |
|
#endif |
38 |
|
#ifdef ALLBSD |
39 |
< |
#ifdef FREEBSD |
39 |
> |
#if defined(FREEBSD) || defined(DFBSD) |
40 |
|
#include <sys/types.h> |
41 |
|
#include <sys/sysctl.h> |
42 |
|
#else |
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 |