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:
parent
30ee4cde52
commit
277f398fae
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
@ -232,7 +232,7 @@ void drawDeviceBar(WINDOW * window, std::vector<SMART> const & smartList, int se
|
||||||
if (std::get<0>(smartList[i].temperature))
|
if (std::get<0>(smartList[i].temperature))
|
||||||
{
|
{
|
||||||
wattrset(window, COLOR_PAIR(HEALTH_INV_COLOR + static_cast<int>(temperatureToHealth(std::get<1>(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);
|
waddch(window, ACS_DEGREE);
|
||||||
waddstr(window, "C");
|
waddstr(window, "C");
|
||||||
wattroff(window, COLOR_PAIR(HEALTH_INV_COLOR + static_cast<int>(temperatureToHealth(std::get<1>(smartList[i].temperature)))));
|
wattroff(window, COLOR_PAIR(HEALTH_INV_COLOR + static_cast<int>(temperatureToHealth(std::get<1>(smartList[i].temperature)))));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue