Commit Graph

17 Commits

Author SHA1 Message Date
a1346054
56c9348372 Trim trailing whitespace 2022-10-13 00:05:35 +00:00
a1346054
22c43c5523 Fix typo 2022-10-13 00:05:35 +00:00
a1346054
aefa6cf194 Use s instead of sec for units of seconds 2022-10-12 23:55:29 +00:00
Zev Weiss
79ccaf8e97 Hide cursor during initialization and restore at exit
Showing the cursor while running (especially on terminals where it
blinks) is a bit visually distracting, and doesn't serve much purpose;
make it invisible in init_ui() and restore the original state in
exit_ui().
2022-06-21 02:37:17 -07:00
Vladimir Panteleev
92fb73116a Replace ConnList linked list with multiset
Keeping a sorted multi-set allows faster search by source /
source+destination address.

Fixes O(n^2) complexity when handling a lot of connections (now it's
O(n log n)).
2022-03-23 17:28:09 +00:00
Matheus Rambo
b94cd9f227 feat: Add basename support
Now, the user can decide to show only the program name, instead of the
full program path. It is useful, when you have a very long hierarchy of
directories, which, with the full path name, the user might not see the
program name.
2021-12-22 10:01:00 -03:00
kretcheu
455daf357d Fix compilation error with [-Werror=format-security]
When compiling with [-Werror=format-security] in Debian packaging occurs this error:
```
cui.cpp: In function ‘void show_ncurses(Line**, int)’:                                          
cui.cpp:377:73: error: format not a string literal and no format arguments [-Werror=format-security]
  377 |   mvprintw(3 + 1 + i, cols - COLUMN_WIDTH_UNIT, desc_view_mode[viewMode]);              
      |                                                                         ^               
cui.cpp:379:29: warning: zero-length gnu_printf format string [-Wformat-zero-length]            
  379 |   mvprintw(totalrow + 1, 0, "");                                                        
      |                             ^~      
```

This patch solve the problem.

[]'s
kretcheu
2021-10-09 16:37:10 -03:00
Andreas Wieland
2cd523868d run make format with clang-format:
* reformats the repo as adviced in the readme
2019-06-12 15:00:40 +02:00
Peter M. Petrakis
677baffe6a Add MB/s and GB/s view modes
- Refactored units presentation into a lookup table
- Other minor refactoring
- Updated man page
- Cleaned up trailing white space in the vicinity
2018-12-03 13:55:54 -05:00
PAVAN
a251024bff fixes issue #110 - dynamic DEV column length, MIN=5, MAX=15 2018-05-03 19:46:48 +05:30
PAVAN
0984d92d90 fixes issue #110 - dynamic DEV column length, MIN=5, MAX=15 2018-05-03 19:12:06 +05:30
PAVAN
5e2763d40f fixes issue #110 - DEV colum length to 15 2018-05-02 00:05:54 +05:30
anomen
2d829675a8 cleanup 2017-01-01 20:49:38 +01:00
anomen
5e2c35700b Add -l option to show full command line (fixes #23) 2016-12-05 08:23:50 +01:00
Chris
4fbecbe54c Fixes screen flickering on urxvt.
Erase() is ncurses optimal for screen refresh. Clear() blanks the
entire screen first, which produces a flickering output on urxvt.
2016-06-19 01:58:46 -07:00
Arnout Engelen
3facf4f34b Don't time out processes in a cumulative view (fixes #39) 2016-04-14 20:00:30 +02:00
Arnout Engelen
e7a74b00fb Move sources to 'src' directory 2016-03-27 23:14:33 +02:00