Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
03322b62
Commit
03322b62
authored
Sep 08, 2011
by
Hisham Muhammad
Browse files
Realign display of text-mode CPU meters. Closes #3369526.
parent
11092662
Changes
1
Hide whitespace changes
Inline
Side-by-side
CPUMeter.c
View file @
03322b62
...
@@ -33,7 +33,7 @@ static void CPUMeter_init(Meter* this) {
...
@@ -33,7 +33,7 @@ static void CPUMeter_init(Meter* this) {
int
cpu
=
this
->
param
;
int
cpu
=
this
->
param
;
if
(
this
->
pl
->
cpuCount
>
1
)
{
if
(
this
->
pl
->
cpuCount
>
1
)
{
char
caption
[
10
];
char
caption
[
10
];
sprintf
(
caption
,
"%-3d
"
,
ProcessList_cpuId
(
this
->
pl
,
cpu
));
sprintf
(
caption
,
"%-3d"
,
ProcessList_cpuId
(
this
->
pl
,
cpu
));
Meter_setCaption
(
this
,
caption
);
Meter_setCaption
(
this
,
caption
);
}
}
if
(
this
->
param
==
0
)
if
(
this
->
param
==
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment