diff --git a/include/gpu_metrics.hpp b/include/gpu_metrics.hpp index 7088aa1..11cd56a 100644 --- a/include/gpu_metrics.hpp +++ b/include/gpu_metrics.hpp @@ -795,6 +795,6 @@ struct gpu_metrics_v3_0 { /* Metrics table alpha filter time constant [us] */ uint32_t time_filter_alphavalue; }; -} // namespace gpu +} // namespace metrics #endif diff --git a/include/hass.hpp b/include/hass.hpp index 3c448d6..b606800 100644 --- a/include/hass.hpp +++ b/include/hass.hpp @@ -7,7 +7,7 @@ #include class HomeAssistant { - public: + public: struct Config { std::string address; std::string entity; diff --git a/src/app.cpp b/src/app.cpp index fb18002..a84b4dd 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -144,7 +144,7 @@ void Application::displayThread(const std::stop_token& st) { // actual main display loop while (!st.stop_requested()) { m_control.display.try_acquire_for(std::chrono::milliseconds(static_cast(m_config.lcd.refresh_interval_ms * 1.25))); // holds the loop until sensor data is ready, max 1.25x of the loop time - if (st.stop_requested()) break; // needed, otherwise it wont quit correctly + if (st.stop_requested()) break; // needed, otherwise it wont quit correctly { std::lock_guard lock(m_control.sensors); diff --git a/src/cpu.cpp b/src/cpu.cpp index 606f758..814e63f 100644 --- a/src/cpu.cpp +++ b/src/cpu.cpp @@ -19,7 +19,7 @@ int detect(cpuSensors* target, const std::string& pci) { return -1; } - target->module = utils::fileExists(target->hwmon + "/in1_input") ? zenpower : k10temp; // idk if this is reliable, we're trying to avoid just reading the name + target->module = utils::fileExists(target->hwmon + "/in1_input") ? zenpower : k10temp; // idk if this is reliable, we're trying to avoid just reading the name target->num_cores = std::thread::hardware_concurrency(); applog(LOG::INF, "Detected {} cores, module enum #{} in path \"{}\"", target->num_cores, static_cast(target->module), target->hwmon); return 0; diff --git a/src/hass.cpp b/src/hass.cpp index 7b4d757..fc12015 100644 --- a/src/hass.cpp +++ b/src/hass.cpp @@ -6,7 +6,7 @@ #include #include -HomeAssistant::HomeAssistant(const Config& config){ +HomeAssistant::HomeAssistant(const Config& config) { m_config = config; } diff --git a/src/utils.cpp b/src/utils.cpp index f91805e..c3eede0 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -1,8 +1,9 @@ +#include + #include #include #include #include -#include namespace utils { @@ -28,4 +29,4 @@ std::string getFirstDir(const std::string_view& path) { return ""; } -} \ No newline at end of file +} // namespace utils \ No newline at end of file