Searched refs:sys_buf (Results 1 – 2 of 2) sorted by relevance
84 struct sysinfo *sys_buf; in main() local89 sys_buf = malloc(sizeof(struct sysinfo)); in main()101 TEST(sysinfo(sys_buf)); in main()118 l1 = sys_buf->loads[0] / 60000.0; in main()119 l2 = sys_buf->loads[1] / 60000.0; in main()120 l3 = sys_buf->loads[2] / 60000.0; in main()124 sys_buf->loads[0] = sys_buf->loads[0] / 10; in main()125 sys_buf->loads[1] = sys_buf->loads[1] / 10; in main()126 sys_buf->loads[2] = sys_buf->loads[2] / 10; in main()127 printf("uptime %lu\n", sys_buf->uptime); in main()[all …]
47 struct sysinfo sys_buf; in setup() local49 sysinfo(&sys_buf); in setup()51 if (sys_buf.totalram < 2L * GB_SZ) in setup()53 if (sys_buf.totalram > 100L * GB_SZ) in setup()56 dst_max = sys_buf.totalram / GB_SZ; in setup()