Ignore case when parse /proc/cpuinfo

This commit is contained in:
Student Main 2024-10-05 03:56:14 +08:00
parent a44fa4cfe4
commit 64f3513d57

View file

@ -184,7 +184,7 @@ String OS_LinuxBSD::get_processor_name() const {
while (!f->eof_reached()) {
const String line = f->get_line();
if (line.contains("model name")) {
if (line.to_lower().contains("model name")) {
return line.split(":")[1].strip_edges();
}
}