Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Paul Warren
iftop
Commits
4a5e6e3e
Commit
4a5e6e3e
authored
Jun 06, 2006
by
chris
Browse files
Display scale in bytes when readings are in bytes; fix per
https://bugs.gentoo.org/show_bug.cgi?id=101926
parent
101d60bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
ui.c
View file @
4a5e6e3e
...
...
@@ -263,7 +263,7 @@ static void draw_bar_scale(int* y) {
char
s
[
40
],
*
p
;
int
x
;
/* This 1024 vs 1000 stuff is just plain evil */
readable_size
(
i
,
s
,
sizeof
s
,
options
.
log_scale
?
1000
:
1024
,
0
);
readable_size
(
i
,
s
,
sizeof
s
,
options
.
log_scale
?
1000
:
1024
,
config
.
bandwidth_in_bytes
);
p
=
s
+
strspn
(
s
,
" "
);
x
=
get_bar_length
(
i
*
8
);
mvaddch
(
*
y
+
1
,
x
,
ACS_BTEE
);
...
...
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