Skip to content

Commit

Permalink
Ignore case when parse /proc/cpuinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
stdmnpkg committed Oct 5, 2024
1 parent a44fa4c commit 64f3513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/linuxbsd/os_linuxbsd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 64f3513

Please sign in to comment.