We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc451e0 commit 2a0ed4fCopy full SHA for 2a0ed4f
src/gpu_fdinfo.cpp
@@ -144,6 +144,10 @@ void GPU_fdinfo::find_intel_hwmon()
144
145
if (!energy_stream.good())
146
SPDLOG_DEBUG("Intel hwmon: failed to open {}", hwmon);
147
+
148
+ // Initialize value for the first time, otherwise delta will be very large
149
+ // and your gpu power usage will be like 1 million watts for a second.
150
+ this->last_power = get_current_power();
151
}
152
153
float GPU_fdinfo::get_current_power()
0 commit comments