statustemp: Don't convert unnecessarily.

This commit is contained in:
tastytea 2021-08-24 22:20:32 +02:00
parent 74bacf5029
commit 63d85f73a8
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ int main(int argc, char *argv[])
file.open(filepath);
std::getline(file, line);
file.close();
temperature = static_cast<float>(std::stof(line) / 1000.0);
temperature = std::stof(line) / 1000.0F;
std::cout << format("<span {:s}>{:.1Lf}°C</span>",
get_style(temperature), temperature)
<< std::endl;