mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 15:15:44 +00:00
Merge pull request #555 from ivan/master
Fix column misalignment for priority -101 threads
This commit is contained in:
commit
5a5a7c8d6b
@ -429,7 +429,7 @@ void Process_writeField(Process* this, RichString* str, ProcessField field) {
|
||||
case PID: snprintf(buffer, n, Process_pidFormat, this->pid); break;
|
||||
case PPID: snprintf(buffer, n, Process_pidFormat, this->ppid); break;
|
||||
case PRIORITY: {
|
||||
if(this->priority == -100)
|
||||
if(this->priority <= -100)
|
||||
snprintf(buffer, n, " RT ");
|
||||
else
|
||||
snprintf(buffer, n, "%3ld ", this->priority);
|
||||
|
Loading…
Reference in New Issue
Block a user