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
d15555ed
Commit
d15555ed
authored
Mar 31, 2016
by
Hisham
Browse files
Merge branch 'master' of
https://github.com/hishamhm/htop
parents
d64f2bdd
6c2f698a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Meter.c
View file @
d15555ed
...
...
@@ -287,11 +287,8 @@ static void BarMeterMode_draw(Meter* this, int x, int y, int w) {
char
bar
[
w
+
1
];
int
blockSizes
[
10
];
for
(
int
i
=
0
;
i
<
w
;
i
++
)
bar
[
i
]
=
' '
;
const
size_t
barOffset
=
w
-
MIN
((
int
)
strlen
(
buffer
),
w
);
snprintf
(
bar
+
barOffset
,
w
-
barOffset
+
1
,
"%s"
,
buffer
);
snprintf
(
bar
,
w
+
1
,
"%*s"
,
w
,
buffer
);
// First draw in the bar[] buffer...
int
offset
=
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