Commit Graph

465 Commits

Author SHA1 Message Date
aristocratos 7adbcbb6d9
Merge pull request #97 from jan-guenter/battery-detection-issue-94
Improved battery detection
2021-10-17 17:14:18 +02:00
Jan Günter 22297f7954 added try catch block as suggested in review
https://github.com/aristocratos/btop/pull/97#discussion_r730428842
2021-10-17 17:06:18 +02:00
Jan Günter 966c9f5e5e improved battery detection
- new considering all power supplies (instead of path name filtering)
- only consider power supplies that are currently present
- only consider power supplies of type Batter or UPS
2021-10-17 16:31:25 +02:00
aristocratos 2ee1333226 Changed: Removed microblaze platform from build targets because of issue with atomics 2021-10-17 12:11:25 +02:00
aristocratos 8a1211ec59
Merge pull request #92 from jan-guenter/musl-build
static musl builds
2021-10-17 01:59:07 +02:00
Jan Günter 816270750d readability change request in review
https://github.com/aristocratos/btop/pull/92#discussion_r730321422
2021-10-17 01:45:26 +02:00
Jan Günter ac1b6aab47 adopting review comments
https://github.com/aristocratos/btop/pull/92#discussion_r730320662
https://github.com/aristocratos/btop/pull/92#discussion_r730320819
2021-10-17 01:02:37 +02:00
aristocratos 1601422613 Changed: Reverted mutexes back to custom atomic bool based locks 2021-10-16 23:52:06 +02:00
Jan Günter d3c85dad21 removed temporary trigger for testing on branch 2021-10-16 23:51:12 +02:00
aristocratos 71d5cd5fd9 Reverted mutexes back to custom atomic bool based locks 2021-10-16 23:24:07 +02:00
Jos Dehaes 3f34a67df6 these helpers can be static 2021-10-16 21:47:55 +02:00
Jos Dehaes fc19c46c8a code cleanup: put the code in .cpp to enable incremental build 2021-10-16 21:45:16 +02:00
Jos Dehaes c252c618c0 don't crash on intel 2021-10-16 21:09:21 +02:00
Jos Dehaes 9f88187c29 small improvement 2021-10-16 21:06:18 +02:00
Jos Dehaes 808f09c974 don't iterate 3 times 2021-10-16 20:59:48 +02:00
Jos Dehaes d8408336e3 remove debug 2021-10-16 20:59:27 +02:00
Jan Günter 347e135bad updated README.md to reflect Makefile changes 2021-10-16 15:47:48 +02:00
Jan Günter bca3521472 updated makefile to add cf-protection for i*86 builds 2021-10-16 15:37:40 +02:00
Jan Günter b83f58a5b7 updated workflow
- removed ARCH parameter in favor of auto deection
- added STRIP flag
2021-10-16 15:16:44 +02:00
Jan Günter 7d4c2bd3c9 updated Makefile
- added platform and arch detection from CXX machine tuple
- add PLATFORM_LC, a lowercase version of PLATFORM, for case insensitive comparison
- added bool flag STRIP to force -s linker flag
- turned linker warnings into errors in case of STATIC to fail in case of glibc static linking issues
- bumped version to 1.3
2021-10-16 15:15:56 +02:00
Jan Günter f0535095a2 changed workflow to build binaries using musl 2021-10-16 13:39:52 +02:00
Jan Günter c8a7c0dc19 changed static build behavior
restrict getpwuid usage only in static builds with glibc
2021-10-16 13:02:06 +02:00
Jan Günter 19ff463695 added yml definitions to .editorconfig 2021-10-16 13:00:23 +02:00
aristocratos 3e936bfa8e v1.0.16 Bug fixes 2021-10-16 11:14:11 +02:00
aristocratos 070691d5d0
Merge pull request #88 from jlopezcur/fix_vim-keys-typo
fix: when vim keys [k]ill should be [K]ill
2021-10-16 10:36:59 +02:00
Javier López Úbeda 084e231f1e fix: when vim keys [k]ill should be [K]ill
When we activate the vim_keys new option the label for kill a process
should be capitalized as "Kill" for match the shortcut Shift+K

fix: #87
2021-10-16 03:29:39 +02:00
aristocratos e5ccf7db2c
Update bug_report.md 2021-10-16 02:23:44 +02:00
aristocratos e20258ea9f Added: Try to restart secondary thread in case of stall and addiotional error checks for ifstream in Proc::collect() 2021-10-15 08:32:37 +02:00
aristocratos 832699ffe6 Changed: Removed unnecessary async threads in Runner thread 2021-10-14 21:44:39 +02:00
aristocratos 79a030ca82 Changed: Reverted thread mutex lock to atomic bool with wait and timeout 2021-10-14 09:22:14 +02:00
Jos Dehaes 4f078c3beb more temperature (M1 + intel) 2021-10-13 23:38:36 +02:00
aristocratos 289880aaa6 Merge branch 'OSX' of github.com:aristocratos/btop into OSX 2021-10-16 19:37:09 +02:00
aristocratos 88a2528ca3 Merge changes from main 2021-10-16 19:34:10 +02:00
Jos Dehaes 3ffb21203a release a bit more - still has negative temps for 2 cores on my system 2021-10-16 19:20:45 +02:00
aristocratos 70b4871062 Fixed leaks in Mem and attempt at fixing leaks in sensors.cpp 2021-10-16 01:59:44 +02:00
Jos Dehaes fbae907720 temperature sensors via IOKit 2021-10-15 23:41:46 +02:00
aristocratos cef0f0a68d Process command line arguments 2021-10-15 18:39:17 +02:00
aristocratos 921cfa01ff Re-enable setuid and set default SU_GROUP to wheel for OSX 2021-10-13 23:20:15 +02:00
Jos Dehaes a416c888c7 temperature 2021-10-13 21:16:54 +02:00
aristocratos 804fe60ca9 Fixed: Swapped from atomic bool spinlocks to mutexes to fix rare deadlock 2021-10-13 20:54:36 +02:00
aristocratos e7afe00ce7 Cpu usage working again 2021-10-13 12:54:43 +02:00
aristocratos 4193ef8921 Fixed cpu lazy sorting 2021-10-13 10:36:51 +02:00
aristocratos 93fcb6ff04
Update README.md 2021-10-12 22:22:45 +02:00
aristocratos 683354cd2e
Merge pull request #80 from ShrirajHegde/OSX
Add github workflow for MacOS
2021-10-12 22:19:30 +02:00
aristocratos 8a399c499a pointer to smart pointer, first pass 2021-10-12 21:50:46 +02:00
aristocratos a1bda5f30c Fixed: atomic_wait() and atomic_lock{} use cpu pause instructions instead of thread sleep 2021-10-12 20:09:35 +02:00
aristocratos 772605003a Fixed detailed memory not updating 2021-10-12 18:54:38 +02:00
aristocratos 903ab4cc8a v1.0.15 Vim keys 2021-10-12 17:39:21 +02:00
aristocratos 2df9b58ff1 Added: Toggle in options for enabling directional vim keys "h,j,k,l" 2021-10-12 17:34:52 +02:00
aristocratos 07145f9351 Fixed: Removed unneeded lock in Runner::run() 2021-10-12 16:56:47 +02:00