1
0
Fork 0
mirror of https://github.com/otakuto/crazydiskinfo.git synced 2025-07-22 22:25:27 +00:00

Made using Decimal for Raw Value a CMake option

RAW_VALUES_DEC can be turned ON or OFF
This commit is contained in:
Konata Izumi 2017-05-08 20:41:30 -04:00
parent 9fbf4cd441
commit 212bc613d8
2 changed files with 8 additions and 0 deletions

View file

@ -360,7 +360,11 @@ 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]))));
#ifndef RAWDEC
mvwprintw(window, 9 + i, 1, " %-7s %02X %-28s %7d %5d %9d %012X ",
#else
mvwprintw(window, 9 + i, 1, " %-7s %02X %-28s %7d %5d %9d %012d ",
#endif//RAWDEC
healthToString(attributeToHealth(smart.attribute[i])).c_str(),
smart.attribute[i].id,
smart.attribute[i].name.c_str(),