Commit Graph

293 Commits

Author SHA1 Message Date
Jos Dehaes
775dff5f72 fix link 2021-10-06 14:16:45 +02:00
Jos Dehaes
8c67967775 reduce diff more 2021-10-06 14:16:38 +02:00
Jos Dehaes
70b47d2ca8 reduce diff with main branch 2021-10-06 14:10:23 +02:00
Jos Dehaes
ca9cb48054 Merge remote-tracking branch 'origin/main' into OSX
# Conflicts:
#	Makefile
#	src/osx/btop_collect.cpp
2021-10-06 13:49:20 +02:00
Jos Dehaes
c66b46f850 battery state via CoreFoundation 2021-10-06 13:41:57 +02:00
Jos Dehaes
d0c6c0a362 all disks + load averages 2021-10-06 12:45:30 +02:00
Jos Dehaes
ca67526dc1 show all disks 2021-10-06 12:45:30 +02:00
Jos Dehaes
56119f99a9 procs sorting/filtering 2021-10-06 12:45:30 +02:00
Jos Dehaes
8d86011d72 battery states 2021-10-06 12:45:30 +02:00
Jos Dehaes
a9b64d62e4 battery hack works on M1 2021-10-06 12:45:30 +02:00
Jos Dehaes
ce51031142 ugly hack to get battery 2021-10-06 12:45:30 +02:00
Jos Dehaes
d5e6725c6c CPU stuff 2021-10-06 12:45:30 +02:00
Jos Dehaes
5c02bd8c83 network 2021-10-06 12:45:30 +02:00
Jos Dehaes
d5da9d4983 correct cached size 2021-10-06 12:45:30 +02:00
Jos Dehaes
5f11aba504 vm stats from syscall + swap 2021-10-06 12:45:30 +02:00
Jos Dehaes
af8cec9deb some more params 2021-10-06 12:45:30 +02:00
Jos Dehaes
7ebe4f7594 show more disks 2021-10-06 12:45:30 +02:00
Jos Dehaes
e50a56394a disks show something 2021-10-06 12:45:30 +02:00
Jos Dehaes
6497a8c202 reformat 2021-10-06 12:45:30 +02:00
Jos Dehaes
28e152b80c decrease diff with upstream 2021-10-06 12:45:30 +02:00
Jos Dehaes
40da88e9ca try to get disks to show 2021-10-06 12:45:30 +02:00
Jos Dehaes
eaf2bb56a5 don't crash on deque::back() 2021-10-06 12:45:30 +02:00
Jos Dehaes
f66b6f712c cpu freq, name & process uid/name 2021-10-06 12:45:29 +02:00
Jos Dehaes
34a8a61f4d basic process info 2021-10-06 12:45:29 +02:00
Jos Dehaes
29bb2dcc5f initialize mutex (needed on macos apparently and not on linux) 2021-10-06 12:45:29 +02:00
Jos Dehaes
49d16cdddd extract delimiters 2021-10-06 12:45:29 +02:00
Jos Dehaes
3db9d66476 first infos on macos: memory used & free 2021-10-06 12:45:29 +02:00
Jos Dehaes
f8acb2f854 make it compile on macos (M1 - arm64). Does not run though 2021-10-06 12:45:29 +02:00
Jos Dehaes
bbba17cd35 all disks + load averages 2021-10-06 10:51:36 +02:00
Jos Dehaes
548203e93d show all disks 2021-10-06 10:33:55 +02:00
Jos Dehaes
0ab2be3985 procs sorting/filtering 2021-10-06 00:17:41 +02:00
Jos Dehaes
096104c90b battery states 2021-10-05 23:42:17 +02:00
Jos Dehaes
0ad93684c2 battery hack works on M1 2021-10-05 23:24:59 +02:00
Jos Dehaes
c75b0f1cea ugly hack to get battery 2021-10-05 23:18:22 +02:00
Jos Dehaes
600b4f72b3 CPU stuff 2021-10-05 22:42:42 +02:00
Jos Dehaes
4eb812d52c network 2021-10-05 21:25:42 +02:00
Jos Dehaes
899be68a78 correct cached size 2021-10-05 15:43:05 +02:00
Jos Dehaes
a1c7f935e3 vm stats from syscall + swap 2021-10-05 12:03:48 +02:00
aristocratos
02fcb8c34a Changed: Total system memory is checked at every update instead of once at start 2021-10-05 09:18:04 +02:00
Jos Dehaes
42f966f448 some more params 2021-10-04 15:32:55 +02:00
Jos Dehaes
c1e6d6a62e show more disks 2021-10-04 15:15:55 +02:00
Jos Dehaes
50fcdaa854 disks show something 2021-10-04 14:52:56 +02:00
Jos Dehaes
264bf2d7da reformat 2021-10-04 09:15:35 +02:00
Jos Dehaes
1fd625086b decrease diff with upstream 2021-10-03 23:21:13 +02:00
Jos Dehaes
17f9f3703c try to get disks to show 2021-10-03 22:56:14 +02:00
Jos Dehaes
8462ae6431 don't crash on deque::back() 2021-10-03 22:42:01 +02:00
Jos Dehaes
78bce5b5a6
Merge branch 'aristocratos:main' into main 2021-10-03 22:08:34 +02:00
Jos Dehaes
53e379d74d cpu freq, name & process uid/name 2021-10-03 22:08:21 +02:00
Jos Dehaes
2a44b307ef basic process info 2021-10-03 21:46:11 +02:00
Jos Dehaes
66534eb5b5 initialize mutex (needed on macos apparently and not on linux) 2021-10-03 21:45:39 +02:00
Jos Dehaes
9732507248 extract delimiters 2021-10-02 23:51:29 +02:00
Jos Dehaes
6e704ce838 Merge branch 'main' of github.com:joske/btop 2021-10-02 23:48:43 +02:00
Jos Dehaes
fe4db7c16c first infos on macos: memory used & free 2021-10-02 23:48:28 +02:00
aristocratos
f9505a425d v1.0.13 Better symbol compatibility 2021-10-02 22:43:49 +02:00
aristocratos
585bb7bb1e Changed: Graph empty symbol is now regular whitespace 2021-10-02 22:39:45 +02:00
Jos Dehaes
7bfbd83a47
Merge branch 'aristocratos:main' into main 2021-10-01 17:05:26 +02:00
aristocratos
a15f961b2f Updated Prerequisites 2021-10-01 15:24:41 +02:00
aristocratos
ae7b8b77ff Version bump 2021-09-30 22:51:05 +02:00
aristocratos
304b9af4e8 Fixed: Exception handling for faulty net download/upload speed 2021-09-30 22:49:14 +02:00
aristocratos
d226e6199f Fixed: Cpu percent formatting if over 10'000 2021-09-30 22:48:03 +02:00
Jos Dehaes
8c8139bd1d
Merge branch 'aristocratos:main' into main 2021-09-29 21:50:00 +02:00
aristocratos
a246c098cd v1.0.11 Bug fixes 2021-09-29 21:24:33 +02:00
Jos Dehaes
679d21cd22
Merge branch 'aristocratos:main' into main 2021-09-29 20:23:34 +02:00
aristocratos
a49b8f999f Changed: Init will continue if UTF-8 locale are detected even if it fails to set the locale 2021-09-29 11:43:37 +02:00
Jos Dehaes
4c70c5bdd9
Merge branch 'aristocratos:main' into main 2021-09-29 08:30:05 +02:00
aristocratos
c70667e9e5 Fixed: UTF8 set LANG and LC_ALL to empty before UTF8 search and fixed empty error msg on exit before signal handler init 2021-09-29 08:16:49 +02:00
Jos Dehaes
84a974695a make it compile on macos (M1 - arm64). Does not run though 2021-09-28 23:37:03 +02:00
aristocratos
ab013b989b Changed: Snap new / mountpoint detection 2021-09-28 21:54:51 +02:00
aristocratos
06cac6756d Fixed: Get real / mountpoint when running inside snap 2021-09-28 21:01:50 +02:00
aristocratos
ff6d1d6eec Changed: atomic_wait to use while loop instead of atom.wait() because of random stalls 2021-09-28 16:58:08 +02:00
aristocratos
5fba94c96c v1.0.10 Bug fixes 2021-09-28 16:37:02 +02:00
aristocratos
8296c1a8d5 Changed: UTF8 detection search if LANG is set but fails to set 2021-09-28 13:08:45 +02:00
aristocratos
dc914aa86d Fixed: Cpu percent cutting off above 1000 percent and added scaling with "k" prefix above 10'000 2021-09-28 09:26:50 +02:00
aristocratos
683c57539a Changed: Moved signal handler setup to later in init 2021-09-28 09:05:16 +02:00
aristocratos
1e84265479 Changed: Cpu temp values check for existing values 2021-09-28 08:54:22 +02:00
aristocratos
a09ad06367 Added: Check for empty percentage deques 2021-09-27 12:51:04 +02:00
aristocratos
01dfd27ec4 Changed: Moved check for valid terminal dimensions to before platform init 2021-09-27 11:59:10 +02:00
aristocratos
65c62cef47 Changed: Stop second thread before updating terminal size variables 2021-09-27 11:01:56 +02:00
aristocratos
d76f258a49 Added: Wait for terminal size properties to be available at start 2021-09-27 09:16:39 +02:00
aristocratos
2ed28fcb44 Changed: use_fstab for disks collection now defaults to true 2021-09-26 19:35:09 +02:00
aristocratos
68d88e6e4d v1.0.9 Bug fixes 2021-09-26 13:46:51 +02:00
aristocratos
f8cc4c4378 Fixed: Freeze on cin.ignore() 2021-09-26 10:14:38 +02:00
aristocratos
528df4d84f Added: ifstream check and try-catch for stod() in Tools::system_uptime() 2021-09-26 01:03:57 +02:00
aristocratos
5ae05f0333 v1.0.8 Bug fixes 2021-09-26 00:23:46 +02:00
aristocratos
771a200107 Changed: Only log tty name if known 2021-09-26 00:17:39 +02:00
aristocratos
741778bedd Fixed: Missing NULL check for ttyname 2021-09-25 23:45:59 +02:00
aristocratos
94feb4e16e More fixes for UTF-8 detection 2021-09-25 11:35:50 +02:00
aristocratos
5273a62856 Fixed: Additional NULL checks in UTF-8 detection 2021-09-25 00:10:18 +02:00
aristocratos
ee8109ec38 v1.0.7 Bug fixes 2021-09-24 22:35:13 +02:00
aristocratos
2aca963f30 Fixed: Scrollbar position incorrect in small lists and selection not working when filtering 2021-09-24 22:24:15 +02:00
aristocratos
a35a2c6884 Fixed: Cores not constrained to cpu box and core numbers above 100 cut off 2021-09-24 22:07:01 +02:00
aristocratos
37de9464e1 Fixed: Crash when opening menu at too small size 2021-09-24 20:58:58 +02:00
aristocratos
78c417bc9f v1.0.6 Bug fixes 2021-09-23 21:00:56 +02:00
aristocratos
5e6d1babdc Fixed: Processes not completely hidden when collapsed in tree mode 2021-09-23 12:44:46 +02:00
aristocratos
1f5aebead0 Fixed: Check that getenv("LANG") is not NULL in UTF-8 check 2021-09-22 19:32:00 +02:00
aristocratos
bc0c109e5e Changed wrong filename error.log > btop.log 2021-09-22 17:38:06 +02:00
aristocratos
2f27d9fa17 v1.0.5 Bug fixes 2021-09-22 17:31:17 +02:00
aristocratos
eedab3062e Fixed: UTF-8 check crashing if LANG was set to non existant locale 2021-09-22 17:27:25 +02:00
aristocratos
b818d0102d Fixed: Sizing constraints bug on start and boxes can be toggled from size error screen 2021-09-22 12:55:39 +02:00
aristocratos
078daf431a Fixed: Load AVG sizing when hiding temperatures 2021-09-22 09:10:52 +02:00
aristocratos
5ce72403b6 v1.0.4 Bug fixes 2021-09-21 21:27:46 +02:00
aristocratos
6d11c8b4db Fixed: Use /proc/pid/statm if RSS memory from /proc/pid/stat is faulty 2021-09-21 21:24:58 +02:00
aristocratos
19e9a181ea v1.0.3 Bug fixes 2021-09-21 17:39:49 +02:00
aristocratos
8d3e4575be Fixed: stoi 0 literal pointer to nullptr and added more clamping for gradient array access 2021-09-21 17:21:42 +02:00
aristocratos
026a9311e9 v1.0.2 Bug fixes 2021-09-20 18:32:08 +02:00
aristocratos
bb5728187a Fixed: Options menu page selection alignment 2021-09-20 18:28:45 +02:00
aristocratos
af465b5b84 Fixed: Menu size and preset size issues and added warnings for small terminal size 2021-09-20 18:20:30 +02:00
aristocratos
85f945ada0 Fixed: Color gradient array out of bounds, added clamp 0-100 for cpu percent values 2021-09-20 17:23:34 +02:00
aristocratos
9319d0c48c Missing comma... 2021-09-18 20:31:47 +02:00
aristocratos
91025a8025 v1.0.1 Bug fixes 2021-09-18 20:20:02 +02:00
aristocratos
fca1d8c199 Fixed UTF-8 check to include UTF8 and added thread started check before joining in clean_quit() 2021-09-18 17:59:45 +02:00
aristocratos
3b80ef9e40 Command line options fixup 2021-09-18 17:33:02 +02:00
Michael Pyne
97726f3fa7 Fix documentation of --utf-force in README and --help.
Fixes #1.
2021-09-18 10:58:51 -04:00
aristocratos
480b421852 v1.0.0 First release 2021-09-18 15:30:42 +02:00
aristocratos
9b6f362247 Added preset selection as program argument 2021-09-18 15:26:56 +02:00
aristocratos
33884e2bf0 Fixed variables to support 32-bit and added preset selection 2021-09-18 14:42:53 +02:00
aristocratos
cffa303270 Added battery info in Cpu::draw() 2021-09-18 02:13:35 +02:00
aristocratos
650df9ac39 Added collect for battery 2021-09-17 14:25:54 +02:00
aristocratos
8583a8a2ef Added menu system 2021-09-12 15:58:23 +02:00
aristocratos
db96a20e16 Added menus and boxes for signal sending 2021-09-01 21:40:13 +02:00
aristocratos
214d8962e0 Moving stuff around 2021-08-23 22:52:52 +02:00
aristocratos
03f64c22de Added btop_platform.cpp, moved btop_linux.cpp to btop_linux.hpp and updated robin_hood.h 2021-08-23 17:35:27 +02:00
aristocratos
b2e0707c32 Added terminal size limit warnings and fixed net auto sizing 2021-08-22 21:39:25 +02:00
aristocratos
3f27fb24b5 Added clock, updated makefile and switch to using semaphore to trigger _runner thread 2021-08-22 16:04:01 +02:00
aristocratos
8bd97b4f24 Fixed memory leak and greatly reduced general memory usage 2021-08-17 22:33:21 +02:00
aristocratos
7ab765b575 Added Net::collect(), Net::draw() and input mappings for net 2021-08-15 23:20:55 +02:00
aristocratos
ee073f6ae5 Added some comments and changed some defaults 2021-08-12 22:25:18 +02:00
aristocratos
ced3d47ebe Removed bad goto and added 100 microseconds sleep in thread manager loop to spare some cpu cycles 2021-08-11 23:21:33 +02:00
aristocratos
f9ed675d47 Added bitmask enums and fixed signed to unsigned comparisons 2021-08-11 20:25:11 +02:00
aristocratos
d56fe4cdb5 Runner::_runner() async threads and bitmask loop 2021-08-11 08:00:13 +02:00
aristocratos
acb20832d1 Added mem and disks 2021-08-10 20:20:33 +02:00
aristocratos
95db0eaf90 Formatting and fixes 2021-08-04 00:11:50 +02:00
aristocratos
102ed6179e Added cpu temperature functionality 2021-08-03 23:47:46 +02:00
aristocratos
e33b4b7b0c Added Cpu::collect(), Cpu::get_cpuName() and Cpu::getHz() 2021-07-29 23:40:56 +02:00
aristocratos
3a4f33485a Added proc info box and changed Proc::collect() to reuse old data when changing filters or sorting etc. 2021-07-26 01:06:34 +02:00
aristocratos
9ee9f3232d Added functionality for text editing and slight modifications to default theme colors 2021-07-24 02:13:26 +02:00
aristocratos
f8005aeb21 Added mouse support and graphs for processes in proc box 2021-07-23 01:41:00 +02:00
aristocratos
4dab58a570 removed duplicate 2021-07-21 03:21:10 +02:00
aristocratos
5d4e2ce182 Loads... 2021-07-21 03:17:34 +02:00
aristocratos
77ef41daea Small changesd 2021-07-18 18:04:49 +02:00
aristocratos
0c1feb909e Added Input::process for input actions and Runner:: namespace for multithreading collection and drawing 2021-07-18 15:44:32 +02:00
aristocratos
1121978214 Proc::draw() and SIGWINCH resizing handler 2021-07-15 23:49:16 +02:00
aristocratos
e3b297e82a Proc::draw gradients 2021-07-05 22:18:58 +02:00
aristocratos
1ff9e218d3 Added Draw::calcSizes() and Proc::draw() 2021-07-04 22:02:31 +02:00
aristocratos
ad5864266a Added Proc::_collect_details for process info box collection 2021-07-04 01:18:48 +02:00
aristocratos
3634633e21 Proc::collect() optimization and started on Proc::_collect_details() 2021-06-30 22:28:12 +02:00
aristocratos
331665dc55 Fixed filtering for processes tree view 2021-06-27 22:13:32 +02:00
aristocratos
db3bf06485 proc/[pid]/stat collection improvement 2021-06-27 01:19:57 +02:00
aristocratos
36f0264485 Added theme loadfile function 2021-06-25 23:58:19 +02:00
aristocratos
b4d223cf40 Small optimization for collect 2021-06-22 22:06:31 +02:00