Home
last modified time | relevance | path

Searched refs:avg (Results 1 – 17 of 17) sorted by relevance

/libuv/test/
H A Dtest-get-loadavg.c27 double avg[3] = {-1, -1, -1}; in TEST_IMPL() local
28 uv_loadavg(avg); in TEST_IMPL()
30 ASSERT_GE(avg[0], 0); in TEST_IMPL()
31 ASSERT_GE(avg[1], 0); in TEST_IMPL()
32 ASSERT_GE(avg[2], 0); in TEST_IMPL()
/libuv/src/unix/
H A Dsysinfo-loadavg.c28 void uv_loadavg(double avg[3]) { in uv_loadavg()
33 avg[0] = (double) info.loads[0] / 65536.0; in uv_loadavg()
34 avg[1] = (double) info.loads[1] / 65536.0; in uv_loadavg()
35 avg[2] = (double) info.loads[2] / 65536.0; in uv_loadavg()
H A Dhurd.c123 void uv_loadavg(double avg[3]) { in uv_loadavg()
127 if (3 == sscanf(buf, "%lf %lf %lf", &avg[0], &avg[1], &avg[2])) in uv_loadavg()
H A Dqnx.c51 void uv_loadavg(double avg[3]) { in uv_loadavg()
52 avg[0] = 0.0; in uv_loadavg()
53 avg[1] = 0.0; in uv_loadavg()
54 avg[2] = 0.0; in uv_loadavg()
H A Dhaiku.c29 void uv_loadavg(double avg[3]) { in uv_loadavg()
30 avg[0] = 0; in uv_loadavg()
31 avg[1] = 0; in uv_loadavg()
32 avg[2] = 0; in uv_loadavg()
H A Dibmi.c257 void uv_loadavg(double avg[3]) { in uv_loadavg()
261 avg[0] = avg[1] = avg[2] = 0; in uv_loadavg()
272 avg[0] = avg[1] = avg[2] = processing_unit_used_percent; in uv_loadavg()
H A Ddarwin.c133 void uv_loadavg(double avg[3]) { in uv_loadavg()
140 avg[0] = (double) info.ldavg[0] / info.fscale; in uv_loadavg()
141 avg[1] = (double) info.ldavg[1] / info.fscale; in uv_loadavg()
142 avg[2] = (double) info.ldavg[2] / info.fscale; in uv_loadavg()
H A Dfreebsd.c129 void uv_loadavg(double avg[3]) { in uv_loadavg()
136 avg[0] = (double) info.ldavg[0] / info.fscale; in uv_loadavg()
137 avg[1] = (double) info.ldavg[1] / info.fscale; in uv_loadavg()
138 avg[2] = (double) info.ldavg[2] / info.fscale; in uv_loadavg()
H A Dopenbsd.c48 void uv_loadavg(double avg[3]) { in uv_loadavg()
55 avg[0] = (double) info.ldavg[0] / info.fscale; in uv_loadavg()
56 avg[1] = (double) info.ldavg[1] / info.fscale; in uv_loadavg()
57 avg[2] = (double) info.ldavg[2] / info.fscale; in uv_loadavg()
H A Dnetbsd.c53 void uv_loadavg(double avg[3]) { in uv_loadavg()
60 avg[0] = (double) info.ldavg[0] / info.fscale; in uv_loadavg()
61 avg[1] = (double) info.ldavg[1] / info.fscale; in uv_loadavg()
62 avg[2] = (double) info.ldavg[2] / info.fscale; in uv_loadavg()
H A Daix.c408 void uv_loadavg(double avg[3]) { in uv_loadavg()
412 avg[0] = 0.; avg[1] = 0.; avg[2] = 0.; in uv_loadavg()
415 avg[0] = ps_total.loadavg[0] / (double)(1 << SBITS); in uv_loadavg()
416 avg[1] = ps_total.loadavg[1] / (double)(1 << SBITS); in uv_loadavg()
417 avg[2] = ps_total.loadavg[2] / (double)(1 << SBITS); in uv_loadavg()
H A Dos390.c106 void uv_loadavg(double avg[3]) { in uv_loadavg()
108 avg[0] = 0; in uv_loadavg()
109 avg[1] = 0; in uv_loadavg()
110 avg[2] = 0; in uv_loadavg()
H A Dlinux.c2418 void uv_loadavg(double avg[3]) { in uv_loadavg()
2423 if (3 == sscanf(buf, "%lf %lf %lf", &avg[0], &avg[1], &avg[2])) in uv_loadavg()
2429 avg[0] = (double) info.loads[0] / 65536.0; in uv_loadavg()
2430 avg[1] = (double) info.loads[1] / 65536.0; in uv_loadavg()
2431 avg[2] = (double) info.loads[2] / 65536.0; in uv_loadavg()
H A Dsunos.c425 void uv_loadavg(double avg[3]) { in uv_loadavg()
426 (void) getloadavg(avg, 3); in uv_loadavg()
/libuv/src/win/
H A Dutil.c273 void uv_loadavg(double avg[3]) { in uv_loadavg()
275 avg[0] = avg[1] = avg[2] = 0; in uv_loadavg()
/libuv/include/
H A Duv.h1714 UV_EXTERN void uv_loadavg(double avg[3]);
/libuv/docs/src/
H A Dmisc.rst421 .. c:function:: void uv_loadavg(double avg[3])

Completed in 46 milliseconds