Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/amdgpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void AMDGPU::get_sysfs_metrics() {
// this value is instantaneous and should be averaged over time
// probably just average everything in this function to be safe
#ifndef TEST_ONLY
if (get_params()->enabled[OVERLAY_PARAM_ENABLED_gpu_power]) {
if (!get_params()->enabled[OVERLAY_PARAM_ENABLED_gpu_power]) {
// NOTE: Do not read power1_average if it is not enabled, as some
// older GPUs may hang when reading the sysfs node.
metrics.powerUsage = 0;
Expand Down
Loading