Skip to content

Commit

Permalink
Convert AMDGPU watts to the datastructure milliwatts
Browse files Browse the repository at this point in the history
  • Loading branch information
Syllo committed Mar 26, 2022
1 parent 6761d89 commit 94e718e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extract_gpuinfo_amdgpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ static void gpuinfo_amdgpu_refresh_dynamic_info(struct gpu_info *_gpu_info) {
else
last_libdrm_return_status = 1;
if (!last_libdrm_return_status) {
dynamic_info->power_draw = out32;
dynamic_info->power_draw = out32 * 1000; // watts to milliwatts
SET_VALID(gpuinfo_power_draw_valid, dynamic_info->valid);
} else
RESET_VALID(gpuinfo_power_draw_valid, dynamic_info->valid);
Expand Down

0 comments on commit 94e718e

Please sign in to comment.