-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
Inline Temperature #111
Inline Temperature #111
Conversation
8e9f780
to
fbd1eea
Compare
fbd1eea
to
2ef5e4b
Compare
Settings.c
Outdated
this->updateProcessNames = false; | ||
this->cpuCount = cpuCount; | ||
this->showProgramPath = true; | ||
this->highlightThreads = true; | ||
this->degreeFahrenheit = false; |
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.
What about display in Kelvin? /joke
2ef5e4b
to
f7750da
Compare
Can you skip the blank after If the temperature is usually integer degrees I'd suggest dropping the fraction part in the display. |
f7750da
to
e7722a7
Compare
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.
Patch LGTM.
That's not that simple. The
Changed the format to |
Why not |
Cause degree Celsius are normally two digit numbers. |
Asking the other way around: Why than bother with making Fahrenheit values 3 digits wide, when they usually are 3 digits anyway? Just asking for why introducing the difference of |
99°F is ~37°C, so I'd like to have a fixed position if the value hovers around that. |
How much work would it be to get the logical and physical cores linked; i.e. duplicate the phys core 0 temp also shown for the HT core of that? Having half the values display as N/A looks strange. |
What about this implementation, which has triggered this pull request to happen, @BenBE? |
Needs to be refactored for SMT/HT and multi-socket systems. |
e7722a7
to
db1fb94
Compare
db1fb94
to
fe544b9
Compare
I'd somehow prefer the order Any other opinions? |
c445a5a
to
74abb86
Compare
603cd19
to
d6aa2fa
Compare
d6aa2fa
to
99776e9
Compare
CRT.c
Outdated
#ifdef HAVE_LIBNCURSESW | ||
if (CRT_utf8) | ||
return "\xc2\xb0"; | ||
#endif |
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.
With libcurses you can still use ° as it is within most non-UTF8 charsets (ISO-8859-x), even CP437, have it at 0x90.
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.
@fasterit can you take a look at the added commit
801b51b
to
009f616
Compare
009f616
to
376141c
Compare
Without |
376141c
to
e8eac72
Compare
d02d891
to
548a32c
Compare
#endif | ||
|
||
static char buffer[4]; | ||
int r = snprintf(buffer, sizeof(buffer), "%lc", 176); |
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.
xSnprintf
?
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.
no (maybe i'll add a comment): this might actually fail on platforms not supporting wide characters, e.g. with POSIX locale (occurred on a raspberry pi)
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.
I feared something like that. ;-) Comment will be appreciated.
b1cdc27
to
1822aad
Compare
1822aad
to
e2a3a76
Compare
Show the CPU temperature in the CPU meter, like CPU frequency, instead of using an extra Meter.
e2a3a76
to
1b225cd
Compare
Alternative implementation of #93
Show the temperature inline as the CPU frequency.