-
Notifications
You must be signed in to change notification settings - Fork 284
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
Add a flag for fan speed #63
Conversation
@wookayin Does this look good to you? |
@bethune-bryant Thank for your contribution. Can you fix the travis CI failure? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good to me, but we several things could be improved. Plus, Travis CI is failing
@@ -189,8 +199,12 @@ def _repr(v, none_value='??'): | |||
# temperature and utilization | |||
reps = "%(C1)s[{entry[index]}]%(C0)s " \ | |||
"%(CName)s{entry[name]:{gpuname_width}}%(C0)s |" \ | |||
"%(CTemp)s{entry[temperature.gpu]:>3}'C%(C0)s, " \ | |||
"%(CUtil)s{entry[utilization.gpu]:>3} %%%(C0)s" | |||
"%(CTemp)s{entry[temperature.gpu]:>3}'C%(C0)s, " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use a dedicated color for fan speed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think yellow/bold_yellow is okay?
Looks good to me, thanks for your contribution. I'll follow up with a bit of more modification. |
I have changed |
It looked like all of the colors were used, so I just chose yellow. Cyan would be good, because it's only used for the gpu id. There are also |
Fixes #62
I used what was done in #42 , but added the command line flag and unit test.