1
0
Fork 0
mirror of https://github.com/otakuto/crazydiskinfo.git synced 2025-07-24 09:57:10 +00:00
This commit is contained in:
otakuto 2017-03-26 14:04:32 +09:00
parent bb7e80fa9c
commit 3e09b4314a

View file

@ -360,7 +360,14 @@ void drawStatus(WINDOW * window, SMART const & smart)
for (int i = 0; i < static_cast<int>(smart.attribute.size()); ++i)
{
wattrset(window, COLOR_PAIR(4 + static_cast<int>(attributeToHealth(smart.attribute[i]))));
mvwprintw(window, 9 + i, 1, " %-7s %02X %-28s %7d %5d %9d %012X ", healthToString(attributeToHealth(smart.attribute[i])).c_str(), smart.attribute[i].id, smart.attribute[i].name.c_str(), smart.attribute[i].current, smart.attribute[i].worst, smart.attribute[i].threshold, smart.attribute[i].raw);
mvwprintw(window, 9 + i, 1, " %-7s %02X %-28s %7d %5d %9d %012X ",
healthToString(attributeToHealth(smart.attribute[i])).c_str(),
smart.attribute[i].id,
smart.attribute[i].name.c_str(),
smart.attribute[i].current,
smart.attribute[i].worst,
smart.attribute[i].threshold,
smart.attribute[i].raw);
wattroff(window, COLOR_PAIR(4 + static_cast<int>(attributeToHealth(smart.attribute[i]))));
}
pnoutrefresh(window, 0, 0,