updated build system
Some checks failed
Public/monitarr/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
2025-10-10 07:50:09 -05:00
parent 586f4cb036
commit 166afcb3b6
68 changed files with 5625 additions and 711 deletions

View File

@@ -35,9 +35,10 @@ struct result final {
using retryable_action_t = std::function<bool()>;
[[nodiscard]] inline constexpr auto
calculate_read_size(std::uint64_t total_size, std::size_t read_size,
std::uint64_t offset) -> std::size_t {
[[nodiscard]] constexpr auto calculate_read_size(std::uint64_t total_size,
std::size_t read_size,
std::uint64_t offset)
-> std::size_t {
return static_cast<std::size_t>(
((offset + read_size) > total_size)
? ((offset < total_size) ? total_size - offset : 0U)