FreeNAS-Report
FreeNAS-Report copied to clipboard
Why are we adding 0 to smart error heath value?
I noticed that even with some brand new drives I am getting a warn on seek error health in the report. I then did some digging into the code to better understand the threshold and it seems that anything less than 100 will display the earring colour.
What confused me though was why we are adding 0 to the value does anyone know? Maybe this can be cleaned up?
if ((seekErrorHealth + 0) < 100) seekErrorHealthColor = warnColor; else seekErrorHealthColor = bgColor;