fix bug of range generator

This commit is contained in:
taiyang-li 2022-04-21 11:33:15 +08:00
parent dd93d5d872
commit adb1288e10

View File

@ -14,7 +14,7 @@ public:
{
}
size_t totalRanges() const { return static_cast<size_t>(round(static_cast<float>(total_size - from) / range_step)); }
size_t totalRanges() const { return static_cast<size_t>(ceil(static_cast<float>(total_size - from) / range_step)); }
using Range = std::pair<size_t, size_t>;