Root/package/network/utils/iftop/patches/005-debian_bar_bytes.patch

1--- a/ui.c
2+++ b/ui.c
3@@ -263,7 +263,7 @@ static void draw_bar_scale(int* y) {
4             char s[40], *p;
5             int x;
6             /* This 1024 vs 1000 stuff is just plain evil */
7- readable_size(i, s, sizeof s, options.log_scale ? 1000 : 1024, 0);
8+ readable_size(i, s, sizeof s, options.log_scale ? 1000 : 1024, options.bandwidth_in_bytes);
9             p = s + strspn(s, " ");
10             x = get_bar_length(i * 8);
11             mvaddch(*y + 1, x, ACS_BTEE);
12

Archive Download this file



interactive