diff options
author | Daniel Lange <DLange@git.local> | 2021-01-11 20:43:28 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2021-01-11 20:43:28 +0100 |
commit | 94123a215ba971baf4ad7e12cc479258ddb8600e (patch) | |
tree | 6f053d8e1ce754ab7104b7364be9754231ab84de /TasksMeter.c | |
parent | 50cb99f0acecb15992f3d5610c02676a6c94f2a4 (diff) | |
parent | c55320e9e2a8916e911bcd39ab37b79e3a7d03b2 (diff) | |
download | debian_htop-94123a215ba971baf4ad7e12cc479258ddb8600e.tar.gz debian_htop-94123a215ba971baf4ad7e12cc479258ddb8600e.tar.bz2 debian_htop-94123a215ba971baf4ad7e12cc479258ddb8600e.zip |
Update upstream source from tag 'upstream/3.0.5'
Update to upstream version '3.0.5'
with Debian dir 10922042e094a59dc72f9c39ddd4bfd59c7a302c
Diffstat (limited to 'TasksMeter.c')
-rw-r--r-- | TasksMeter.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/TasksMeter.c b/TasksMeter.c index 7696988..a760ce0 100644 --- a/TasksMeter.c +++ b/TasksMeter.c @@ -46,7 +46,7 @@ static void TasksMeter_display(const Object* cast, RichString* out) { int processes = (int) this->values[2]; xSnprintf(buffer, sizeof(buffer), "%d", processes); - RichString_write(out, CRT_colors[METER_VALUE], buffer); + RichString_writeAscii(out, CRT_colors[METER_VALUE], buffer); int threadValueColor = CRT_colors[METER_VALUE]; int threadCaptionColor = CRT_colors[METER_TEXT]; if (settings->highlightThreads) { @@ -54,21 +54,21 @@ static void TasksMeter_display(const Object* cast, RichString* out) { threadCaptionColor = CRT_colors[PROCESS_THREAD]; } if (!settings->hideUserlandThreads) { - RichString_append(out, CRT_colors[METER_TEXT], ", "); + RichString_appendAscii(out, CRT_colors[METER_TEXT], ", "); xSnprintf(buffer, sizeof(buffer), "%d", (int)this->values[1]); - RichString_append(out, threadValueColor, buffer); - RichString_append(out, threadCaptionColor, " thr"); + RichString_appendAscii(out, threadValueColor, buffer); + RichString_appendAscii(out, threadCaptionColor, " thr"); } if (!settings->hideKernelThreads) { - RichString_append(out, CRT_colors[METER_TEXT], ", "); + RichString_appendAscii(out, CRT_colors[METER_TEXT], ", "); xSnprintf(buffer, sizeof(buffer), "%d", (int)this->values[0]); - RichString_append(out, threadValueColor, buffer); - RichString_append(out, threadCaptionColor, " kthr"); + RichString_appendAscii(out, threadValueColor, buffer); + RichString_appendAscii(out, threadCaptionColor, " kthr"); } - RichString_append(out, CRT_colors[METER_TEXT], "; "); + RichString_appendAscii(out, CRT_colors[METER_TEXT], "; "); xSnprintf(buffer, sizeof(buffer), "%d", (int)this->values[3]); - RichString_append(out, CRT_colors[TASKS_RUNNING], buffer); - RichString_append(out, CRT_colors[METER_TEXT], " running"); + RichString_appendAscii(out, CRT_colors[TASKS_RUNNING], buffer); + RichString_appendAscii(out, CRT_colors[METER_TEXT], " running"); } const MeterClass TasksMeter_class = { |