1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
---
sbin/sysctl/sysctl.c | 3 +++
1 file changed, 3 insertions(+)
--- a/src/sbin/sysctl/sysctl.c
+++ b/src/sbin/sysctl/sysctl.c
@@ -58,6 +58,7 @@
#include <string.h>
#include <sysexits.h>
#include <unistd.h>
+#include <time.h>
static const char *conffile;
@@ -473,6 +474,7 @@
static int
S_loadavg(int l2, void *p)
{
+#if 0
struct loadavg *tv = (struct loadavg*)p;
if (l2 != sizeof(*tv)) {
@@ -483,6 +485,7 @@
(double)tv->ldavg[0]/(double)tv->fscale,
(double)tv->ldavg[1]/(double)tv->fscale,
(double)tv->ldavg[2]/(double)tv->fscale);
+#endif
return (0);
}
|