mirror of https://github.com/xzeldon/htop.git
Fix bitmask used to extract CPU identifier for CPUMeter
When manipulating CPUMeters in the AvailableMeterPanel we use the bottom 16 bits to hold the CPU number. However, the bitmask used to extract the CPU number only masks the lower 8 bits (0xff).
This commit is contained in:
parent
44d1200ca4
commit
a0f758009b
|
@ -45,7 +45,7 @@ static HandlerResult AvailableMetersPanel_eventHandler(Panel* super, int ch) {
|
|||
if (!selected)
|
||||
return IGNORED;
|
||||
|
||||
unsigned int param = selected->key & 0xff;
|
||||
unsigned int param = selected->key & 0xffff;
|
||||
int type = selected->key >> 16;
|
||||
HandlerResult result = IGNORED;
|
||||
bool update = false;
|
||||
|
|
Loading…
Reference in New Issue