btop/src
Mitchell Dorrell 3c6929b025 Fix integer overflows in btop_collect.cpp
Correct data types in calls to std::accumulate(). The "bandwidth" deques
have type "long long", so the initial value of the accumulator (0) must
also be "long long" (i.e., "0ll") to prevent integer overflows. Also,
since since the bandwidth deques are (signed) "long long", the avg_speed
should presumably be a signed "long long" instead of an unsigned
"uint64_t". The previous behavior was for large bandwidth values to
overflow the accumulator, resulting in a negative total, which then was
cast to be a huge "uint64_t" value. As a consequence, the network graph
autoscaling was broken for large bandwidths.
2023-05-26 01:26:21 -04:00
..
freebsd Fix integer overflows in btop_collect.cpp 2023-05-26 01:26:21 -04:00
linux Fix integer overflows in btop_collect.cpp 2023-05-26 01:26:21 -04:00
osx Fix integer overflows in btop_collect.cpp 2023-05-26 01:26:21 -04:00
btop.cpp println -> fmt::println 2023-05-21 12:26:48 +02:00
btop_config.cpp fix: spelling mistake in btop.conf 2022-10-15 18:23:07 -07:00
btop_config.hpp Fix variable initialization to 'auto' for getB() 2022-10-04 12:56:14 +03:00
btop_draw.cpp amend! update cpu load average display 2023-05-24 19:51:43 -05:00
btop_draw.hpp All but two places const bool have been updated 2022-10-04 21:36:04 +03:00
btop_input.cpp Forgot to update 'auto' usage wherever necessary 2022-10-04 12:11:12 +03:00
btop_input.hpp Further Cleanup Part 2 2022-10-03 00:29:05 +03:00
btop_menu.cpp Silence "warning: unqualified call to 'std::move'" in clang. 2023-03-07 13:16:04 +01:00
btop_menu.hpp Further Cleanup Part 2 2022-10-03 00:29:05 +03:00
btop_shared.cpp All but two places const bool have been updated 2022-10-04 21:36:04 +03:00
btop_shared.hpp Fixed: Process nice value underflowing, issue #461 2022-11-06 11:32:17 +01:00
btop_theme.cpp No need for const & in bool 2022-10-04 11:47:26 +03:00
btop_theme.hpp No need for const & in bool 2022-10-04 11:47:26 +03:00
btop_tools.cpp btop.cpp -> fmt 2023-05-20 14:52:50 +02:00
btop_tools.hpp Readd using namespace fmt 2023-05-21 12:11:29 +02:00