comment out unused sensors for SPEED
This commit is contained in:
@@ -17,15 +17,15 @@ void detectHwmon(gpuSensors* target, std::string pci) {
|
||||
}
|
||||
}
|
||||
|
||||
/* some metrics are missing in gpu_metrics, we always fill them from fs */
|
||||
/* some metrics are missing in gpu_metrics, we always fill them from fs, unused metrics are commented out */
|
||||
void fillMissingMetrics(gpuSensors* g) {
|
||||
g->vcore = std::stol(readFile(g->hwmon + "/in0_input", 4)) / 1000.0f;
|
||||
g->fan_pwm = std::stoi(readFile(g->hwmon + "/pwm1", 4)) * 100 / 256;
|
||||
// g->fan_pwm = std::stoi(readFile(g->hwmon + "/pwm1", 4)) * 100 / 256;
|
||||
g->fan_speed = std::stol(readFile(g->hwmon + "/fan1_input", 4));
|
||||
g->power_cap = std::stol(readFile(g->hwmon + "/power1_cap", 16)) / 1000000;
|
||||
g->power_cap_max = std::stol(readFile(g->hwmon + "/power1_cap_max", 16)) / 1000000;
|
||||
// g->power_cap_max = std::stol(readFile(g->hwmon + "/power1_cap_max", 16)) / 1000000;
|
||||
g->vram_used = std::stoul(readFile(g->hwmon + "/../../mem_info_vram_used", 16));
|
||||
g->vram_total = std::stoul(readFile(g->hwmon + "/../../mem_info_vram_total", 16));
|
||||
// g->vram_total = std::stoul(readFile(g->hwmon + "/../../mem_info_vram_total", 16));
|
||||
}
|
||||
|
||||
/* get sensors for pre-vega cards (rx480/580) */
|
||||
|
||||
Reference in New Issue
Block a user