Files
scylladb/utils/upload_progress.hh
Avi Kivity 0ae22a09d4 LICENSE: Update to version 1.1
Updated terms of non-commercial use (must be a never-customer).
2026-04-12 19:46:33 +03:00

19 lines
379 B
C++

/*
* Copyright (C) 2025-present ScyllaDB
*/
/*
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.1
*/
#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}; }
};
}