Searched refs:cpu_file (Results 1 – 3 of 3) sorted by relevance
186 FILE *cpu_file; in get_cpu_usages() local230 cpu_file = fopen(file_name, "r"); in get_cpu_usages()232 if (cpu_file == NULL) { in get_cpu_usages()237 if (1 != fscanf(cpu_file, "%d", &online)) { in get_cpu_usages()241 fclose(cpu_file); in get_cpu_usages()244 fclose(cpu_file); in get_cpu_usages()
187 FILE *cpu_file; in get_cpu_usages() local231 cpu_file = fopen(file_name, "r"); in get_cpu_usages()233 if (cpu_file == NULL) { in get_cpu_usages()238 if (1 != fscanf(cpu_file, "%d", &online)) { in get_cpu_usages()242 fclose(cpu_file); in get_cpu_usages()245 fclose(cpu_file); in get_cpu_usages()
188 FILE *cpu_file; in get_cpu_usages() local232 cpu_file = fopen(file_name, "r"); in get_cpu_usages()234 if (cpu_file == NULL) { in get_cpu_usages()239 if (1 != fscanf(cpu_file, "%d", &online)) { in get_cpu_usages()243 fclose(cpu_file); in get_cpu_usages()246 fclose(cpu_file); in get_cpu_usages()