FreeNAS-Report icon indicating copy to clipboard operation
FreeNAS-Report copied to clipboard

Why are we adding 0 to smart error heath value?

Open CBattershillDev opened this issue 2 years ago • 0 comments

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;

CBattershillDev avatar Oct 05 '22 22:10 CBattershillDev