Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crazy shows raw values as hex #16

Open
roflmao opened this issue Feb 28, 2017 · 3 comments
Open

crazy shows raw values as hex #16

roflmao opened this issue Feb 28, 2017 · 3 comments

Comments

@roflmao
Copy link

roflmao commented Feb 28, 2017

The raw values are shown in hex for the values (dec is more human readable ;-)

Ex. wear leveling count shows as 107 which is 263 decimal which is the value we are looking for.

crazy output on /dev/sdj:

                                                                                       | Status  ID AttributeName                Current Worst Threshold   Raw Values |                                                                                       
                                                                                       | Good    05 reallocated-sector-count         100   100        10 000000000000 |                                                                                       
                                                                                       | Good    09 power-on-hours                    99    99         0 000000000E25 |                                                                                       
                                                                                       | Good    0C power-cycle-count                 99    99         0 000000000008 |                                                                                       
                                                                                       | Good    B1 wear-leveling-count               87    87         0 000000000107 |                                                                                       
                                                                                       | Good    B3 used-reserved-blocks-total       100   100        10 000000000000 |                                                                                       
                                                                                       | Good    B5 program-fail-count-total         100   100        10 000000000000 |                                                                                       
                                                                                       | Good    B6 erase-fail-count-total           100   100        10 000000000000 |                                                                                       
                                                                                       | Good    B7 runtime-bad-block-total          100   100        10 000000000000 |                                                                                       
                                                                                       | Good    BB reported-uncorrect               100   100         0 000000000000 |                                                                                       
                                                                                       | Good    BE airflow-temperature-celsius       68    57         0 000000000020 |                                                                                       
                                                                                       | Good    C3 hardware-ecc-recovered           200   200         0 000000000000 |                                                                                       
                                                                                       | Good    C7 udma-crc-error-count             100   100         0 000000000000 |                                                                                       
                                                                                       | Good    EB good-block-rate                   99    99         0 000000000001 |                                                                                       
                                                                                       | Good    F1 total-lbas-written                99    99         0 000034D4CFFD |                                                                                       
                                                                                       +------------------------------------------------------------------------------+ 
# smartctl -A /dev/sdj
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-96-generic] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       3621
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       8
177 Wear_Leveling_Count     0x0013   087   087   000    Pre-fail  Always       -       263
179 Used_Rsvd_Blk_Cnt_Tot   0x0013   100   100   010    Pre-fail  Always       -       0
181 Program_Fail_Cnt_Total  0x0032   100   100   010    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   100   100   010    Old_age   Always       -       0
183 Runtime_Bad_Block       0x0013   100   100   010    Pre-fail  Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0032   068   057   000    Old_age   Always       -       32
195 Hardware_ECC_Recovered  0x001a   200   200   000    Old_age   Always       -       0
199 UDMA_CRC_Error_Count    0x003e   100   100   000    Old_age   Always       -       0
235 Unknown_Attribute       0x0012   099   099   000    Old_age   Always       -       1
241 Total_LBAs_Written      0x0032   099   099   000    Old_age   Always       -       134030348254
@sasawat
Copy link
Contributor

sasawat commented May 9, 2017

I made this change in my fork.

RAW_VALUES_DEC CMake option set to ON will build with Raw Value as Decimal

@hartwork
Copy link

hartwork commented Mar 29, 2020

With packaging in Linux distros in mind, #19 should probably have been a runtime option rather than a compile switch.

@hartwork
Copy link

I just learned that you can press key d to switch between decimal and hex display, see:

crazydiskinfo/main.cpp

Lines 556 to 561 in 803a585

case 'd':
option.isRawHex = !option.isRawHex;
clear();
refresh();
update();
break;

Can this bug be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants