diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2012-10-04 23:59:45 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2012-10-04 23:59:45 +0000 |
commit | 47e881f460cfb441be64a1ff17295357fb02d0ad (patch) | |
tree | a0e48ec820c059d71be2abb0573393ef76052ea7 /ProcessList.c | |
parent | e6c6d7fbf7c463c7e8c877b60059c47f1841e9c0 (diff) |
Add IO priority support ('i' key)
Diffstat (limited to 'ProcessList.c')
-rw-r--r-- | ProcessList.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ProcessList.c b/ProcessList.c index 14a8b29c..268793f2 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -268,7 +268,7 @@ void ProcessList_printHeader(ProcessList* this, RichString* header) { ProcessField* fields = this->fields; for (int i = 0; fields[i]; i++) { const char* field = Process_fieldTitles[fields[i]]; - if (this->sortKey == fields[i]) + if (!this->treeView && this->sortKey == fields[i]) RichString_append(header, CRT_colors[PANEL_HIGHLIGHT_FOCUS], field); else RichString_append(header, CRT_colors[PANEL_HEADER_FOCUS], field); @@ -681,6 +681,7 @@ static bool ProcessList_processEntries(ProcessList* this, const char* dirname, P unsigned long long int lasttimes = (process->utime + process->stime); if (! ProcessList_readStatFile(process, dirname, name, command)) goto errorReadingProcess; + Process_updateIOPriority(process); float percent_cpu = (process->utime + process->stime - lasttimes) / period * 100.0; process->percent_cpu = MAX(MIN(percent_cpu, cpus*100.0), 0.0); if (isnan(process->percent_cpu)) process->percent_cpu = 0.0; |