Valentin Doreau
f0f68e485f
Borg repo information can take a long time to gather. Before resetting the old metrics we store the new ones in a buffer and update everything at the end.
14 lines
313 B
Go
14 lines
313 B
Go
package main
|
|
|
|
type MetricsBuffer struct {
|
|
RepoName string
|
|
ArchiveCount float64
|
|
LastArchiveTime float64
|
|
LastModified float64
|
|
TotalChunks float64
|
|
TotalCsize float64
|
|
TotalSize float64
|
|
TotalUniqueChunks float64
|
|
UniqueCsize float64
|
|
UniqueSize float64
|
|
}
|