diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:18 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:18 +0200 |
commit | 031c3bb95f3d0a74d985286068baa6dd4d29d83f (patch) | |
tree | f8258f898976e17dfbc9df30ca357be6cb3605a5 /Process.c | |
parent | bb3dd9e92f5a33ba5dd1192edc1671192e63cc8e (diff) | |
download | debian_htop-031c3bb95f3d0a74d985286068baa6dd4d29d83f.tar.gz debian_htop-031c3bb95f3d0a74d985286068baa6dd4d29d83f.tar.bz2 debian_htop-031c3bb95f3d0a74d985286068baa6dd4d29d83f.zip |
Imported Upstream version 0.5.3upstream/0.5.3
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -40,7 +40,7 @@ int kill(pid_t pid, int signal); typedef enum ProcessField_ { PID, COMM, STATE, PPID, PGRP, SESSION, TTY_NR, TPGID, FLAGS, MINFLT, CMINFLT, MAJFLT, CMAJFLT, UTIME, STIME, CUTIME, CSTIME, PRIORITY, NICE, ITREALVALUE, STARTTIME, VSIZE, RSS, RLIM, STARTCODE, ENDCODE, - STARTSTACK, KSTKESP, KSTKEIP, SIGNAL, BLOCKED, SIGIGNORE, SIGCATCH, WCHAN, NSWAP, CNSWAP, EXIT_SIGNAL, + STARTSTACK, KSTKESP, KSTKEIP, SIGNAL, BLOCKED, SSIGIGNORE, SIGCATCH, WCHAN, NSWAP, CNSWAP, EXIT_SIGNAL, PROCESSOR, M_SIZE, M_RESIDENT, M_SHARE, M_TRS, M_DRS, M_LRS, M_DT, ST_UID, PERCENT_CPU, PERCENT_MEM, USER, TIME, LAST_PROCESSFIELD } ProcessField; @@ -268,6 +268,7 @@ void Process_writeField(Process* this, RichString* str, ProcessField field) { case SESSION: snprintf(buffer, n, "%5d ", this->session); break; case TTY_NR: snprintf(buffer, n, "%5d ", this->tty_nr); break; case TPGID: snprintf(buffer, n, "%5d ", this->tpgid); break; + case PROCESSOR: snprintf(buffer, n, "%3d ", this->processor+1); break; case COMM: { if (!this->pl->treeView || this->indent == 0) { Process_writeCommand(this, attr, str); |