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);
|
file.open(filepath);
|
||||||
std::getline(file, line);
|
std::getline(file, line);
|
||||||
file.close();
|
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>",
|
std::cout << format("<span {:s}>{:.1Lf}°C</span>",
|
||||||
get_style(temperature), temperature)
|
get_style(temperature), temperature)
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
|
|
Loading…
Reference in New Issue