1
0
Fork 0
mirror of https://github.com/otakuto/crazydiskinfo.git synced 2025-08-08 23:23:35 +00:00

Format strings: get individual value of a std::pair

Suggested-by: g++
This commit is contained in:
Paul Wise 2021-11-25 12:47:51 +08:00
parent 30ee4cde52
commit 277f398fae
No known key found for this signature in database
GPG key ID: 3116BA5E9FFA69A3

View file

@ -232,7 +232,7 @@ void drawDeviceBar(WINDOW * window, std::vector<SMART> const & smartList, int se
if (std::get<0>(smartList[i].temperature))
{
wattrset(window, COLOR_PAIR(HEALTH_INV_COLOR + static_cast<int>(temperatureToHealth(std::get<1>(smartList[i].temperature)))));
mvwprintw(window, 1, x, "%.1f ", smartList[i].temperature);
mvwprintw(window, 1, x, "%.1f ", std::get<1>(smartList[i].temperature));
waddch(window, ACS_DEGREE);
waddstr(window, "C");
wattroff(window, COLOR_PAIR(HEALTH_INV_COLOR + static_cast<int>(temperatureToHealth(std::get<1>(smartList[i].temperature)))));