diff options
| author | 諏訪子 <suwako@076.moe> | 2024-06-18 14:53:14 +0900 | 
|---|---|---|
| committer | 諏訪子 <suwako@076.moe> | 2024-06-18 14:53:14 +0900 | 
| commit | 4efbc72a79eb243bb57837c9e80253f7d5b16b56 (patch) | |
| tree | 92a7907d72d56e03bd09d960371a25b1cd17a00b | |
| parent | cfc9d105e6b808922a5dc8c357225a9fba1236e2 (diff) | |
Linux: Devuanで「bios_limit」ファイルが存在しないらしい
| -rw-r--r-- | src/cpu.c | 4 | 
1 files changed, 4 insertions, 0 deletions
@@ -43,6 +43,10 @@ void display_cpu() {    double fmt;    FILE *fp = fopen("/sys/devices/system/cpu/cpu0/cpufreq/bios_limit", "r");    if (fp == NULL) { +    fp = fopen("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq", "r"); +  } + +  if (fp == NULL) {      perror("失敗");      return;    }  | 
