Skip to content

Commit

Permalink
Fix mingw build
Browse files Browse the repository at this point in the history
  • Loading branch information
Makevelli committed Mar 1, 2024
1 parent e79dc64 commit ffe4403
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/overlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,10 @@ void update_hw_info(const struct overlay_params& params, uint32_t vendorID)
getIoStats(g_io_stats);
#endif

#ifndef _WIN32
if(params.enabled[OVERLAY_PARAM_ENABLED_liquid])
liquidStats.Update();
#endif

currentLogData.gpu_load = gpu_info.load;
currentLogData.gpu_temp = gpu_info.temp;
Expand Down Expand Up @@ -755,9 +757,11 @@ void init_cpu_stats(overlay_params& params)

void init_liquid_stats(overlay_params& params)
{
#ifndef _WIN32
auto& enabled = params.enabled;
enabled[OVERLAY_PARAM_ENABLED_liquid] = liquidStats.Init(params.liquid_temp, params.liquid_flow, params.liquid_additional_sensors)
&& enabled[OVERLAY_PARAM_ENABLED_liquid];
#endif
}

struct pci_bus {
Expand Down

0 comments on commit ffe4403

Please sign in to comment.