Commit graph

559 commits

Author SHA1 Message Date
aristocratos dd4ada7023 Fixed missing definition for ROCm static build 2024-05-01 20:43:46 +02:00
aristocratos b48bf6ae45 Add info text about regex filtering in help menu 2024-04-30 18:03:06 +02:00
Steffen 255b777563
Add regex filtering
Filters starting with '!' will try to match processes pid, name, cmd and
user with extended regex as defined by the C++ standard. A single '!'
will not filter.
2024-04-30 17:09:15 +02:00
Jakob P. Liljenberg f8cfa70dda
Merge branch 'main' into Fix-Typo 2024-04-30 17:02:16 +02:00
vsey 14b388521d
Fix typo 2024-04-30 16:09:37 +02:00
Steffen Winter d200ce45ae
Show time in days when remaining battery exceeds an estimation of 24h 2024-04-30 15:32:41 +02:00
Jakob P. Liljenberg 924c3f3a72
Merge pull request #819 from kalkafox/rsmi-pwr-usage-fix
fix pwr_usage not being defined correctly during rsmi collection
2024-04-28 22:45:42 +02:00
thecoder-001 5ba45f7633
Remove logging for uid without username
Signed-off-by: thecoder-001 <ayush06feb@gmail.com>
2024-04-28 23:53:27 +05:30
thecoder-001 9a37395744
osx: show uid instead of 'unknown' if no user exists with the same
Signed-off-by: thecoder-001 <ayush06feb@gmail.com>
2024-04-28 02:53:50 +05:30
thecoder-001 08f90fb4f0
fix: crash on osx proc box
Signed-off-by: thecoder-001 <ayush06feb@gmail.com>
2024-04-28 02:41:20 +05:30
Kalka b06474136b fix pwr_usage not being defined correctly during rsmi collection 2024-04-11 22:50:58 -04:00
Davide Conti a60c969533 Fix rsmi device name buffer size
ref. issue #794
2024-03-13 10:12:28 +01:00
Otto Kekäläinen bfe8c20ebe Fix misc spelling 2024-02-29 22:11:39 -08:00
Jakob P. Liljenberg 967ea1ab6f
Merge branch 'main' into build-info 2024-02-18 14:19:05 +01:00
David Mak e031cce6ba collect: Fix reading of battery power draw on Linux
This was erroneously set to read from the current battery charge.

Fixes #770.
2024-02-14 01:01:40 +08:00
aristocratos fd2a2acdad v1.3.2 Hotfix GPU support AMD ROCm v6 2024-02-12 16:30:09 +01:00
aristocratos bae006e94c Fixed variable names 2024-02-12 15:37:31 +01:00
aristocratos c625d512e1 Add check for possible librocm_smi64.so.6 and check for version 7 in the function logic 2024-02-12 15:31:43 +01:00
Steffen Winter 43af034317
fix: Can't detect librocm 6.0.x
librocm reports it's version as 7.0.0.0 in the 6.0.x release series.
2024-02-12 14:16:28 +01:00
aristocratos 9c34ac75dc v1.3.1 Bug fixes 2024-02-11 18:32:27 +01:00
Jakob P. Liljenberg 65f3ade9b6
Merge branch 'main' into unix-duplicates 2024-02-11 17:54:00 +01:00
Jakob P. Liljenberg 283ad3e76e
Merge branch 'main' into utf8-ctype 2024-02-11 17:49:35 +01:00
aristocratos 1670e1db79 Reuse code from init, properly log warnings and move execution in to main loop 2024-02-11 17:42:51 +01:00
Jakob P. Liljenberg 67561d1994
Merge branch 'main' into hot-reload 2024-02-11 17:07:06 +01:00
Jakob P. Liljenberg 459cbbeb52
Merge branch 'main' into fix/zombie 2024-02-11 16:49:49 +01:00
Jakob P. Liljenberg c7fdd8adfe
Merge branch 'main' into config-trailing-newline 2024-02-11 16:45:56 +01:00
Jakob P. Liljenberg f1f37ad6af
Merge branch 'main' into battery-power-2 2024-02-11 16:39:59 +01:00
Jakob P. Liljenberg 842b9f83b2
Merge branch 'main' into main 2024-02-11 16:33:01 +01:00
Jakob P. Liljenberg 7f5b060b0c
Merge branch 'main' into fmt-header-only 2024-02-11 16:11:52 +01:00
Jakob P. Liljenberg e0884917e6
Merge branch 'main' into debug 2024-02-11 16:11:05 +01:00
Jakob P. Liljenberg 8bf88c1918
Merge branch 'main' into fix/if-name-len 2024-02-11 15:50:14 +01:00
Steffen Winter ab0bef204a
collect: Share ifaddrs wrapper and use uniq_ptr-like syntax 2024-02-09 14:03:06 +01:00
Steffen Winter ee46dba838
bsd: Wrap kvm_t* in a uniq_ptr and share code between BSD's 2024-02-09 13:16:09 +01:00
Laurent Cheylus f2ead3d3a9
Check LC_CTYPE to set UTF-8 locale
Fix aristocratos/btop#752

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-02-08 14:35:21 +01:00
MartinPit 57703d3087
Merge branch 'main' into hot-reload 2024-02-05 16:08:57 +01:00
Jos Dehaes 2b09f29a1e fix: don't mangle memory for zombie processes
for a zombie process, `proc_pidpath` returns 0, and nothing is written in fullname, so it's uninitialized garbage
2024-02-02 09:28:07 +01:00
Steven Ward 69363487bc Write newline at end of config file 2024-01-30 20:12:58 -05:00
vsey 0bb1d4bf97
Merge branch 'main' into battery-power-2 2024-01-30 22:05:00 +01:00
fxzjshm 7d3617a274
Fix dynamic loading of ROCm v6
Corrected definition of `rsmi_frequencies_t` of ROCm v5 and v6.
Also added the missing `LOAD_SYM(rsmi_version_get);` as it is used later.

Fixes: 5511131 ("Support for dynamic loading of ROCm v6")
Signed-off-by: fxzjshm <fxzjshm@163.com>
2024-01-27 15:31:02 +08:00
aristocratos 4461a431ae Fixed incorrect used and available memory for OSX 2024-01-26 23:29:31 +01:00
aristocratos 5511131572 Support for dynamic loading of ROCm v6 2024-01-26 22:11:23 +01:00
rliang 81d09860f7
Fix basic_string::_M_create exception
when 1000>hz>999.5, round(hz)=1000
btop_draw.cpp: 793: Symbols::h_line * (7 - cpuHz.size())  exception
2024-01-25 03:36:15 +08:00
Steffen Winter 7717020197
Include build info in binary 2024-01-24 15:02:11 +01:00
jkre c750543950 Fix missing value in battery status tuple for openbsd 2024-01-22 22:32:16 +01:00
jkre 61105e46b7 Add battery power draw to battery inforamtion tuple for openbsd and set it to a constant 2024-01-22 22:20:33 +01:00
vsey 40cdb92b8e
Merge branch 'aristocratos:main' into battery-power-2 2024-01-22 22:01:14 +01:00
Martin Oliver Pitoňák fb994b69eb
added ctrl+r shortcut to reload config from disk 2024-01-17 17:27:18 +01:00
Martin Oliver Pitoňák e047f88bd5
SIGUSR2 signal now reloads the config 2024-01-17 16:41:58 +01:00
Steffen Winter 3174c83b43
-DFMT_HEADER_ONLY as a compiler flag
This just defines FMT_HEADER_ONLY everywhere instead of just in all
files that include `btop_tools.hpp`, in case the statement gets removed
there.
2024-01-17 09:56:18 +01:00
Martin Oliver Pitoňák 67a674e850
btop now reacts to SIGUSR1 by reloading config 2024-01-16 19:02:20 +01:00