acpitool/cache-size.patch
Al Stone 4d93de1927 Cache size was reported incorrectly
Incorporate patch provided in BZ

Signed-off-by: Al Stone <ahs3@redhat.com>
2019-05-28 14:52:47 -06:00

15 lines
555 B
Diff

Actually print the cache size instead of cpufreq a second time.
Reported and fixed by Stephane Wirtel <stephane@wirtel.be>
diff -rNu acpitool-0.5.1/src/cpu.cpp acpitool-0.5.1-modified/src/cpu.cpp
--- acpitool-0.5.1/src/cpu.cpp 2009-08-13 21:26:02.000000000 +0200
+++ acpitool-0.5.1-modified/src/cpu.cpp 2019-04-18 16:01:54.091620544 +0200
@@ -80,6 +80,7 @@
}
fgets(str, 299, cpuinfo_fp);
+ fgets(str, 299, cpuinfo_fp);
memset(temp, '\0', 130);
sscanf(str, "%*[^:] %*s %s",temp);
printf(" Cache size : %s KB\n", temp);