[0.4.11][TASKMGR] Tweak the status bar a bit (reusing CORE-15615)

by picking those two commits:
0.4.12-dev-363-g 473e0bfc83
0.4.12-dev-779-g 3b96148641

Although the regression that was introduced by 0.4.12-dev-363-g 473e0bfc83
and then fixed by 0.4.12-dev-779-g 3b96148641
did never affect any release, the older releases do still benefit from those 2 commits applied together:

The status bar consists of 3 sections:
"processes count"
"CPU load"
"Commit charge"

"Commit charge" is extremely dynamic in length, therefore we can improve the usability a bit by maximizing available space for it.
"processes count" also deserves a bit more space, otherwise even 3-digits-count would be cropped in english already.
"CPU load" is most defined in length, as the only dynamic part in there is 0% to 100%, just 2 digits.
Therefore we do sacrifice a bit space from "CPU load" section in favor of the other sections.

See https://jira.reactos.org/secure/attachment/61659/ros_taskmgr_BEFORE_mostCompact.png for a pic before this backmerge.
This commit is contained in:
Joachim Henze 2022-02-28 17:56:02 +01:00
parent 2f9b2df3d0
commit d8058c95f3
2 changed files with 3 additions and 3 deletions

View file

@ -438,7 +438,7 @@ BEGIN
IDS_MSG_WARNINGCHANGEPRIORITY "WARNUNG: Das Ändern der Prioritätsklasse dieses Prozesses\nkann zu unerwünschten Ergebnissen, einschl. Systeminstabilität, führen.\nSind Sie sicher, dass Sie diese ändern möchten?"
IDS_MSG_TRAYICONCPUUSAGE "CPU-Auslastung: %d%%"
IDS_STATUS_MEMUSAGE "Speicher: %s / %s (%d%%)"
IDS_STATUS_CPUUSAGE "CPU-Auslastung: %3d%%"
IDS_STATUS_CPUUSAGE "CPU-Last: %3d%%"
IDS_STATUS_PROCESSES "Prozesse: %d"
IDS_NOT_RESPONDING "Keine Rückmeldung"
IDS_RUNNING "Wird ausgeführt"

View file

@ -46,8 +46,8 @@ typedef struct _IO_COUNTERS {
#define RUN_PERF_PAGE
#define STATUS_WINDOW 2001
#define STATUS_SIZE1 80
#define STATUS_SIZE2 210
#define STATUS_SIZE1 85
#define STATUS_SIZE2 190
#define STATUS_SIZE3 400
typedef struct