Commit Graph

783 Commits

Author SHA1 Message Date
aristocratos
68f7d1f4bb Fixed: Not picking up last username from /etc/passwd 2022-11-05 22:56:52 +01:00
Jakob P. Liljenberg
c65c5e5d22
Merge pull request #458 from correabuscar/replace__getnameinfo__with__inet_ntop
Replace  getnameinfo  with  inet_ntop [on Linux]
2022-11-05 00:17:33 +01:00
correabuscar
bad9bbc160 make IPBUFFER_MAXSIZE an enum constant
... instead of a macro constant(which made the code less readable!)

Supposedly it also doesn't use run-time storage.
2022-11-04 23:23:27 +01:00
correabuscar
96a22b4078 use inet_ntop instead of getnameinfo
saves 979 bytes of reserved buffer because:
NI_MAXHOST is 1025 bytes
and
INET6_ADDRSTRLEN is 46

Depends on PR #457 being merged first.
2022-11-04 23:23:27 +01:00
Jakob P. Liljenberg
6fc58c4360
Merge pull request #457 from correabuscar/i456_use_first_IP_of_iface_not_last
Show the first IP of the interface in NET box [on Linux]
2022-11-04 19:59:16 +01:00
correabuscar
eec1999a8f Show the first IP of the interface in NET box
... instead of the last.

Also, indented the `for` statement with tabs rather than spaces.

Closes #456
2022-11-04 01:45:09 +01:00
Jakob P. Liljenberg
3ddf89ae1c
Merge pull request #454 from Superty/main
proc tree: fix display bug when displaying full cmd
2022-10-31 22:54:12 +01:00
Arjun P
c1675634ef Address comment 2022-10-31 21:42:34 +00:00
Arjun P
bb40de64c9 Fix bug in proc_tree view when showing full cmd 2022-10-30 09:27:56 +00:00
Arjun P
4fbda9df29 proc tree: fix width threshold to match commit message and use and/or instead of &&, || 2022-10-29 00:20:11 +01:00
Jakob P. Liljenberg
011cf650c1
Merge pull request #452 from Superty/main
proc tree view: if there's more than 40 width left, print full cmd
2022-10-29 00:42:53 +02:00
Arjun P
ede7d0a76a proc tree view: if there's more than 40 width left, try to print full cmd 2022-10-28 22:24:56 +01:00
Jakob P. Liljenberg
f8c272c00f
macOS Ventura compile instructions 2022-10-28 22:37:53 +02:00
Jakob P. Liljenberg
f946a764c5
macOS Ventura compile instructions 2022-10-28 22:36:24 +02:00
aristocratos
a201944dc7 Added autodetection for gcc12 to make compiling on macos Ventura easier. 2022-10-28 22:33:16 +02:00
aristocratos
9f0fcdd5bf Fixed: Moved up get_cpuHz() in the execution order to get better cpu clock reading. 2022-10-27 15:09:00 +02:00
Jakob P. Liljenberg
2247ed3db1
Update continuous-build-macos.yml 2022-10-23 19:51:03 +02:00
Jakob P. Liljenberg
f9de2598e0
Update continuous-build-macos.yml 2022-10-23 19:41:12 +02:00
Jakob P. Liljenberg
f05a0560db
Update continuous-build-linux.yml 2022-10-23 19:39:41 +02:00
aristocratos
dda9f2589f Fixed: Ignore disks that fails in statvfs64() to avoid slowdowns and possible crashes. 2022-10-23 19:33:04 +02:00
daephx
7943a0234a fix: spelling mistake in btop.conf 2022-10-15 18:23:07 -07:00
aristocratos
8a07bc43b4 Changed: Reverted back to sysconf(_SC_NPROCESSORS_ONLN) for Cpu core count ant let the new dynamic update fix if cores are turned on later 2022-10-13 09:26:06 +02:00
aristocratos
d1056bf423 Merge branch 'main' of github.com:aristocratos/btop 2022-10-10 13:02:15 +02:00
aristocratos
2ff8864418 Makefile: Reverse VERBOSE bool to not stop with macOS make 2022-10-10 13:02:07 +02:00
Jakob P. Liljenberg
c9b0885a3f
Update README.md 2022-10-10 12:35:30 +02:00
Jakob P. Liljenberg
939062b17c
Added more Makefile flags 2022-10-10 12:34:06 +02:00
aristocratos
080a47e649 Added: VERBOSE=true flag for Makefile to display all compiler commands and fixed so already set CXXFLAGS and LDFLAGS are displayed. 2022-10-10 12:29:32 +02:00
aristocratos
3dd6a6cc6b v1.2.12 Bug fix 2022-10-07 20:59:47 +02:00
aristocratos
4f45b9b25f Added: Dynamic updating of max number of CPU cores 2022-10-07 20:45:12 +02:00
aristocratos
14444760c4 v1.2.11 Quick fix for number of cores detection 2022-10-07 13:52:34 +02:00
aristocratos
e5cc895015 Fixed: Number of cores wrongly detected for Ryzen in rare cases. 2022-10-07 13:41:04 +02:00
aristocratos
7a2556eae5 v1.2.10 Bug fixes, cleanup + a new theme 2022-10-06 22:16:34 +02:00
Jakob P. Liljenberg
d58a17afb1
Merge pull request #438 from stefanos82/main
Further cleanup
2022-10-05 12:28:55 +02:00
aristocratos
0cb31e7b11 Fixed: Cpu::collect() core count counter... 2022-10-05 10:41:09 +02:00
Στέφανος
f0e413ed6f All but two places const bool have been updated
I haven't touched `include/robin_hood.h` as I don't know whether it's a
third-party header file that could get rewritten at a later time of a
possible future release by the author(s) of it.
2022-10-04 21:36:04 +03:00
Στέφανος
8331cb36f8 More const bool cleanup 2022-10-04 17:33:53 +03:00
Στέφανος
afeef173fc Remove const from bool variables 2022-10-04 17:06:39 +03:00
Στέφανος
820391494b Avoid the unnecessary use of copy constructor
When you want to pass a `std::string` to `std::string_view`,
prefer to do such operation during object initialization via `{}` so you
can avoid to use the copy constructor, which can be expensive under
certain situations.
2022-10-04 16:20:20 +03:00
Jakob P. Liljenberg
2b02a6656f
Merge pull request #437 from stefanos82/main
Fix variable initialization to 'auto' for getB()
2022-10-04 12:50:17 +02:00
Στέφανος
ab7fe62e65 Fix variable initialization to 'auto' for getB()
It does not make sense to return a `const bool&` as we are dealing with
Boolean literals that are `prvalue`s of type bool.

The compiler is smart enough to do the necessary optimizations wherever
is applicable.
2022-10-04 12:56:14 +03:00
Στέφανος
36a180033d Forgot to update 'auto' usage wherever necessary 2022-10-04 12:11:12 +03:00
Στέφανος
98b35d20a5 More 'No need for const & in bool' 2022-10-04 11:57:15 +03:00
Στέφανος
2f1bf0df01 No need for const & in bool 2022-10-04 11:47:26 +03:00
Jakob P. Liljenberg
c3bdd5d02f
Merge pull request #436 from stefanos82/fixed-merge-conflict
Code Cleanup
2022-10-03 13:11:22 +02:00
Στέφανος
73afc487fa
Merge branch 'main' into fixed-merge-conflict 2022-10-03 10:41:40 +03:00
aristocratos
96b770cfdb Changed: Using sysconf(_SC_NPROCESSORS_CONF) for number of cores instead of sysconf(_SC_NPROCESSORS_ONLN) 2022-10-03 08:49:41 +02:00
Στέφανος
1fddbc1cd6 Further Cleanup Part 2 2022-10-03 00:29:05 +03:00
Στέφανος
eda6873071 Further 'cleanup' 2022-10-02 21:52:27 +03:00
Στέφανος
dfa2a9b920 Further improvements 2022-10-02 19:09:19 +03:00
Στέφανος
478a44cc57 Clean up btop_tools.{hpp,cpp} files 2022-10-02 18:52:18 +03:00