19 lines
379 B
C++
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}; }
|
|
};
|
|
}
|