From 3922da8a3990e6d6dd6d4b6ef13a433217367ae2 Mon Sep 17 00:00:00 2001 From: siroccal <41478263+siroccal@users.noreply.github.com> Date: Thu, 10 Aug 2023 04:26:57 +0200 Subject: [PATCH] fix small cpu/gpu mixup bug check (correct) cpu power string length instead of gpu --- src/hud_elements.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hud_elements.cpp b/src/hud_elements.cpp index f71f156e..c05fbfa2 100644 --- a/src/hud_elements.cpp +++ b/src/hud_elements.cpp @@ -335,7 +335,7 @@ void HudElements::cpu_stats(){ if (HUDElements.params->enabled[OVERLAY_PARAM_ENABLED_cpu_power]){ ImguiNextColumnOrNewRow(); char str[16]; - snprintf(str, sizeof(str), "%.1f", gpu_info.powerUsage); + snprintf(str, sizeof(str), "%.1f", cpuStats.GetCPUDataTotal().power); if (strlen(str) > 4) right_aligned_text(HUDElements.colors.text, HUDElements.ralign_width, "%.0f", cpuStats.GetCPUDataTotal().power); else