use pointers to strings
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
namespace gpu {
|
||||
|
||||
/* takes pointer to a target gpu::sensors struct and updates its hwmon path and detects gpu_metrics */
|
||||
void detectHwmon(gpuSensors* target, std::string pci) {
|
||||
void detectHwmon(gpuSensors* target, const std::string& pci) {
|
||||
target->hwmon = getFirstDir("/sys/bus/pci/devices/" + pci + "/hwmon");
|
||||
log(LOG::INF, "gpu::detectHwmon", "Detected path \"{}\"", target->hwmon);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user