diff options
| author | 諏訪子 <suwako@076.moe> | 2024-06-18 15:25:45 +0900 | 
|---|---|---|
| committer | 諏訪子 <suwako@076.moe> | 2024-06-18 15:25:45 +0900 | 
| commit | 625e34c44c3845dc6728f95540a4d6cb9ec2eb51 (patch) | |
| tree | 8fe142679b7e971cd2674c2595ed86be5f0c5270 | |
| parent | 0a0916ccebae20e7ee6feafa417cfebd8256ef04 (diff) | |
| parent | 4efbc72a79eb243bb57837c9e80253f7d5b16b56 (diff) | |
Merge branch 'master' of gitler.moe:suwako/farfetch
| -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;    }  | 
