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
2960a816
Commit
2960a816
authored
Nov 20, 2010
by
Hisham Muhammad
Browse files
BUGFIX: Fix alignment for display of memory values above 100G (sign of the times!)
(thanks to Jan van Haarst for the report.) Closes #2865619.
parent
10f007e0
Changes
2
Show whitespace changes
Inline
Side-by-side
ChangeLog
View file @
2960a816
...
...
@@ -22,7 +22,11 @@ What's new in version 0.9
(thanks to Daniel Schuler)
* Improve battery meter support
(thanks to Richard W.)
* Fix IO-wait color in "Black on White" scheme
* BUGFIX: Fix IO-wait color in "Black on White" scheme
* BUGFIX: Fix search by process name when list is filtered by user.
(thanks to Sergej Pupykin for the report.)
* BUGFIX: Fix alignment for display of memory values above 100G (sign of the times!)
(thanks to Jan van Haarst for the report.)
What's new in version 0.8.3
...
...
Process.c
View file @
2960a816
...
...
@@ -229,9 +229,14 @@ static void Process_printLargeNumber(Process* this, RichString *str, unsigned lo
char
buffer
[
11
];
int
len
;
if
(
number
>=
(
10
*
ONE_M
))
{
if
(
number
>=
(
100
*
ONE_M
))
{
len
=
snprintf
(
buffer
,
10
,
"%4ldG "
,
number
/
ONE_M
);
RichString_appendn
(
str
,
CRT_colors
[
LARGE_NUMBER
],
buffer
,
len
);
}
else
{
len
=
snprintf
(
buffer
,
10
,
"%3.1fG "
,
(
float
)
number
/
ONE_M
);
RichString_appendn
(
str
,
CRT_colors
[
LARGE_NUMBER
],
buffer
,
len
);
}
else
if
(
number
>=
(
100000
))
{
}
}
else
if
(
number
>=
100000
)
{
len
=
snprintf
(
buffer
,
10
,
"%4ldM "
,
number
/
ONE_K
);
int
attr
=
this
->
pl
->
highlightMegabytes
?
CRT_colors
[
PROCESS_MEGABYTES
]
...
...
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