From a2ab4699abf5c13c6121cc0e2b7a13225eb24f6a Mon Sep 17 00:00:00 2001 From: Vasili Karaev Date: Tue, 4 Sep 2018 23:37:00 +0300 Subject: [PATCH] refactor(temperature): Do not use 'm_' prefix with local variable --- src/modules/temperature.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/temperature.cpp b/src/modules/temperature.cpp index da27b7c2..a6f6838e 100644 --- a/src/modules/temperature.cpp +++ b/src/modules/temperature.cpp @@ -51,11 +51,11 @@ namespace modules { bool temperature_module::update() { m_temp = std::strtol(file_util::contents(m_path).c_str(), nullptr, 10) / 1000.0f + 0.5f; - int m_temp_f = floor(((1.8 * m_temp) + 32) + 0.5); + int temp_f = floor(((1.8 * m_temp) + 32) + 0.5); m_perc = math_util::cap(math_util::percentage(m_temp, 0, m_tempwarn), 0, 100); string temp_c_string = to_string(m_temp); - string temp_f_string = to_string(m_temp_f); + string temp_f_string = to_string(temp_f); // Add units if `units = true` in config if(m_units) {