From 277f398fae781f216359474564dcd3d80159db42 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Thu, 25 Nov 2021 12:47:51 +0800 Subject: [PATCH] Format strings: get individual value of a std::pair Suggested-by: g++ --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 7d8b42c..0f1c490 100644 --- a/main.cpp +++ b/main.cpp @@ -232,7 +232,7 @@ void drawDeviceBar(WINDOW * window, std::vector const & smartList, int se if (std::get<0>(smartList[i].temperature)) { wattrset(window, COLOR_PAIR(HEALTH_INV_COLOR + static_cast(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(temperatureToHealth(std::get<1>(smartList[i].temperature)))));