@ -196,7 +196,9 @@ void Logger::try_log() {
currentLogData.previous = elapsedLog;
currentLogData.fps = fps;
currentLogData.frametime = frametime;
#ifdef __gnu_linux__
currentLogData.current_watt = Battery_Stats.current_watt;
#endif
m_log_array.push_back(currentLogData);
if (m_params->autostart_log)
writeFileContinuous(currentLogFile);
@ -22,7 +22,9 @@ std::vector<logData> graph_data;
void update_hw_info(struct swapchain_stats& sw_stats, struct overlay_params& params, uint32_t vendorID)
{
Battery_Stats.update();
if (params.enabled[OVERLAY_PARAM_ENABLED_cpu_stats] || logger->is_active()) {
cpuStats.UpdateCPUData();
@ -1856,7 +1856,9 @@ static VkResult overlay_CreateSwapchainKHR(
std::string deviceName = prop.deviceName;
if (!is_blacklisted()) {
parse_pciids();
get_device_name(prop.vendorID, prop.deviceID, swapchain_data->sw_stats);
init_gpu_stats(device_data->properties.vendorID, device_data->instance->params);
init_system_info();