Commit graph

548 commits

Author SHA1 Message Date
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
Steffen Winter a44ce1c3a1
Make BTOP_DEBUG also work for CMake 2024-01-15 19:23:47 +01:00
Helmut K. C. Tessarek 6a6f514f80 fix: increase interface name length to 15 2024-01-12 11:28:42 -05:00
aristocratos 62964693b3 Fixed gpu boxes visibility state not saved and removed unnecessary comments 2024-01-07 14:51:03 +01:00
aristocratos 057f4594fb Fixed config variable show_gpu_info working correctly 2024-01-07 14:10:40 +01:00
vsey b28c5ffc40
Merge branch 'main' into battery-power-2 2024-01-03 20:52:30 +01:00
nobounce 1e6bf18c65
Add flag to set the refresh rate from command line 2024-01-03 17:35:54 +01:00
nobounce b124db78c0 Don't pass int by reference 2024-01-03 17:25:09 +01:00
Jakob P. Liljenberg 6637485f0c
Merge branch 'main' into config-read-only 2024-01-03 17:05:24 +01:00
Steffen Winter ff8352fdcd Improved error handling when determining the config directory
More verbose error printing when a directory is e.g. not readable

Also allow the use of read only configurations with disabled logging and
persistent configuration
2024-01-03 16:50:15 +01:00
aristocratos ea001bb93e Merge branch 'main' into pr/lvxnull/624 2024-01-03 16:49:24 +01:00
Jakob P. Liljenberg ef788efc53
Merge branch 'main' into lldb-term-size 2024-01-03 16:34:01 +01:00