add a lil code so it shows metrics ver on start, since we'll need to parse 9070xt soon heheh
This commit is contained in:
@@ -24,7 +24,12 @@ int detect(gpuSensors* target, const std::string& pci) {
|
||||
applog(LOG::INF, "Detected path \"{}\"", target->hwmon);
|
||||
|
||||
if (utils::fileExists(target->hwmon + rel_metrics_path)) {
|
||||
applog(LOG::INF, "Found gpu_metrics");
|
||||
std::array<char, max_metrics_length> raw_metrics{};
|
||||
if (!utils::readFile(target->hwmon + rel_metrics_path, raw_metrics))
|
||||
return -1;
|
||||
const auto header = reinterpret_cast<metrics::metrics_table_header*>(raw_metrics.data());
|
||||
|
||||
applog(LOG::INF, "Found gpu_metrics_v{}_{}", header->format_revision, header->content_revision);
|
||||
target->hasGpuMetrics = true;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user