Searched refs:cpu_file (Results 1 – 3 of 3) sorted by relevance
94 FILE *cpu_file; in get_cpu_usages() local128 cpu_file = fopen(file_name, "r"); in get_cpu_usages()130 if (cpu_file == NULL) { in get_cpu_usages()135 } else if (1 != fscanf(cpu_file, "%d", &online)) { in get_cpu_usages()139 fclose(cpu_file); in get_cpu_usages()142 fclose(cpu_file); in get_cpu_usages()
90 FILE *cpu_file; in get_cpu_usages() local136 cpu_file = fopen(file_name, "r"); in get_cpu_usages()138 if (cpu_file == NULL) { in get_cpu_usages()143 if (1 != fscanf(cpu_file, "%d", &online)) { in get_cpu_usages()147 fclose(cpu_file); in get_cpu_usages()150 fclose(cpu_file); in get_cpu_usages()