1 |
|
/* |
2 |
|
* i-scream central monitoring system |
3 |
< |
* http://www.i-scream.org.uk |
4 |
< |
* Copyright (C) 2000-2002 i-scream |
3 |
> |
* http://www.i-scream.org |
4 |
> |
* Copyright (C) 2000-2003 i-scream |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or |
7 |
|
* modify it under the terms of the GNU General Public License |
105 |
|
cpu_now.total=cpu_now.user+cpu_now.nice+cpu_now.kernel+cpu_now.idle; |
106 |
|
#endif |
107 |
|
#ifdef FREEBSD |
108 |
< |
if (sysctlbyname("kern.cp_time", NULL, &size, NULL, NULL) < 0){ |
109 |
< |
return NULL; |
110 |
< |
} |
111 |
< |
if (sysctlbyname("kern.cp_time", &cp_time, &size, NULL, NULL) < 0){ |
108 |
> |
if (sysctlbyname("kern.cp_time", &cp_time, &size, NULL, 0) < 0){ |
109 |
|
return NULL; |
110 |
|
} |
111 |
|
|