mirror of
https://github.com/kopia/kopia.git
synced 2026-05-10 15:54:20 -04:00
13 lines
245 B
Go
13 lines
245 B
Go
package metrics
|
|
|
|
// AggregateSnapshots computes aggregate of the provided snapshots.
|
|
func AggregateSnapshots(snapshots []Snapshot) Snapshot {
|
|
result := createSnapshot()
|
|
|
|
for _, s := range snapshots {
|
|
result.mergeFrom(s)
|
|
}
|
|
|
|
return result
|
|
}
|