mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
CPU: fix CPU frequency not displayed if bios_limit doesn't exist
Regression of 264b6794f3
This commit is contained in:
@@ -57,9 +57,9 @@ void ffPrintCPU(FFCPUOptions* options)
|
||||
ffStrbufAppendF(&str, " (%u)", cpu.coresOnline);
|
||||
|
||||
double freq = cpu.frequencyBiosLimit;
|
||||
if(freq <= 0.0000001)
|
||||
if(!(freq > 0.0000001))
|
||||
freq = cpu.frequencyMax;
|
||||
if(freq <= 0.0000001)
|
||||
if(!(freq > 0.0000001))
|
||||
freq = cpu.frequencyBase;
|
||||
if(freq > 0.0000001)
|
||||
ffStrbufAppendF(&str, " @ %.*f GHz", options->freqNdigits, freq);
|
||||
|
||||
Reference in New Issue
Block a user