clang format

This commit is contained in:
system64fumo 2024-08-23 00:50:45 +03:00
parent 4689d9b107
commit 22696110b1
2 changed files with 4 additions and 4 deletions

View file

@ -932,9 +932,9 @@ std::string systemInfoRequest(eHyprCtlOutputFormat format, std::string request)
close(fd); close(fd);
throw std::runtime_error("Failed to get DRM version"); throw std::runtime_error("Failed to get DRM version");
} }
const std::string name = version->name ? version->name : "Unknown"; const std::string name = version->name ? version->name : "Unknown";
const std::string description = version->desc ? version->desc : "Unknown"; const std::string description = version->desc ? version->desc : "Unknown";
std::string GPUINFO = "GPU information:\n"; std::string GPUINFO = "GPU information:\n";
GPUINFO += "GPU Type: " + name + "\n"; GPUINFO += "GPU Type: " + name + "\n";
GPUINFO += "Driver Description: " + description + "\n"; GPUINFO += "Driver Description: " + description + "\n";

View file

@ -620,9 +620,9 @@ void logSystemInfo() {
close(fd); close(fd);
throw std::runtime_error("Failed to get DRM version"); throw std::runtime_error("Failed to get DRM version");
} }
const std::string name = version->name ? version->name : "Unknown"; const std::string name = version->name ? version->name : "Unknown";
const std::string description = version->desc ? version->desc : "Unknown"; const std::string description = version->desc ? version->desc : "Unknown";
std::string GPUINFO; std::string GPUINFO;
GPUINFO += "GPU Type: " + name + "\n"; GPUINFO += "GPU Type: " + name + "\n";
GPUINFO += "Driver Description: " + description + "\n"; GPUINFO += "Driver Description: " + description + "\n";