mirror of
https://github.com/otakuto/crazydiskinfo.git
synced 2025-07-24 09:57:10 +00:00
cosme
This commit is contained in:
parent
bb7e80fa9c
commit
3e09b4314a
1 changed files with 8 additions and 1 deletions
9
main.cpp
9
main.cpp
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue