archiver: test backup summary calculation

This commit is contained in:
Michael Eischer
2024-02-23 21:46:39 +01:00
parent b6520038fd
commit 681395955e
2 changed files with 108 additions and 43 deletions

View File

@@ -41,12 +41,14 @@ type ItemStats struct {
TreeSizeInRepo uint64 // sum of the bytes added to the repo (including compression and crypto overhead)
}
type ChangeStats struct {
New uint
Changed uint
Unchanged uint
}
type Summary struct {
Files, Dirs struct {
New uint
Changed uint
Unchanged uint
}
Files, Dirs ChangeStats
ProcessedBytes uint64
ItemStats
}