its not getting the revision, its getting the whole header, refactor
This commit is contained in:
@@ -84,7 +84,7 @@ struct GpuMetrics_v1_3_t {
|
||||
uint8_t padding1;
|
||||
};
|
||||
|
||||
GpuMetricsHeader_t getGpuMetricsRev(std::string path) {
|
||||
GpuMetricsHeader_t getGpuMetricsHeader(std::string path) {
|
||||
GpuMetricsHeader_t header;
|
||||
std::ifstream f(path, std::ios::binary);
|
||||
if (f.good()) {
|
||||
@@ -93,7 +93,7 @@ GpuMetricsHeader_t getGpuMetricsRev(std::string path) {
|
||||
std::cout << ", size " << std::to_string(header.structure_size) << std::endl;
|
||||
f.close();
|
||||
} else {
|
||||
std::cerr << "[GpuMetrics] error reading header at path " + path << std::endl;
|
||||
std::cerr << "[GpuMetrics] error reading header at path " + path + " (wrong card # ?)" << std::endl;
|
||||
}
|
||||
|
||||
return header;
|
||||
|
||||
Reference in New Issue
Block a user