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

Why are we adding 0 to smart error heath value? #35

Open
CBattershillDev opened this issue Oct 5, 2022 · 0 comments
Open

Why are we adding 0 to smart error heath value? #35

CBattershillDev opened this issue Oct 5, 2022 · 0 comments

Comments

@CBattershillDev
Copy link

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;

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

1 participant