mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-07 05:34:20 +01:00
ffGetPropValue
This commit is contained in:
+2
-2
@@ -44,8 +44,8 @@ void ffPrintCPU(FFinstance* instance)
|
||||
|
||||
while(getline(&line, &len, cpuinfo) != -1)
|
||||
{
|
||||
sscanf(line, "model name%*s %[^\n]", name);
|
||||
sscanf(line, "vendor_id%*s %[^\n]", vendor);
|
||||
sscanf(line, "model name%*s %256[^\n]", name);
|
||||
sscanf(line, "vendor_id%*s %256[^\n]", vendor);
|
||||
sscanf(line, "cpu cores%*s %i", &physicalCores);
|
||||
|
||||
//Stop after the first CPU
|
||||
|
||||
Reference in New Issue
Block a user