statustemp: Don't convert unnecessarily.
This commit is contained in:
parent
74bacf5029
commit
63d85f73a8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue