Files
scylladb/utils/upload_progress.hh
2025-10-13 08:53:25 +00:00

19 lines
379 B
C++

/*
* Copyright (C) 2025-present ScyllaDB
*/
/*
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
*/
#pragma once
#include <cstddef>
namespace utils {
struct upload_progress {
size_t total = 0;
size_t uploaded = 0;
upload_progress operator+(const upload_progress& other) const { return {total + other.total, uploaded + other.uploaded}; }
};
}