analyse: remove redundant total size calculation
This commit is contained in:
parent
69cd8079da
commit
00dc05ac8f
@ -210,16 +210,6 @@ int main (int argc, char const **argv)
|
|||||||
output << std::dec << '\n';
|
output << std::dec << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<off64_t> sizes;
|
|
||||||
std::transform (
|
|
||||||
src.begin (),
|
|
||||||
src.end (),
|
|
||||||
std::back_inserter (sizes),
|
|
||||||
[] (auto const &val) { return val.size (); }
|
|
||||||
);
|
|
||||||
auto const myaccum = std::accumulate (std::begin (sizes), std::end (sizes), 0);
|
|
||||||
std::cout << myaccum << '\n';
|
|
||||||
|
|
||||||
// Find the total and unique byte counts
|
// Find the total and unique byte counts
|
||||||
auto const total_bytes = std::accumulate (
|
auto const total_bytes = std::accumulate (
|
||||||
src.begin (),
|
src.begin (),
|
||||||
|
Loading…
Reference in New Issue
Block a user