Skip to content

Commit

Permalink
fixed kernel version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Bezos committed Oct 23, 2024
1 parent f278f5f commit a8d3ade
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ std::string getKernelVersion() {
versionFile.close();

std::istringstream iss(versionLine);
std::string kernel, version, build;
std::string kernel, version, build, ignored;

iss >> kernel >> version >> build;
iss >> ignored >> ignored >> kernel;

return version;
return kernel;
} else {
std::cerr << "Unable to open /proc/version" << std::endl;
return "";
Expand Down

0 comments on commit a8d3ade

Please sign in to comment.