mirror of
https://github.com/restic/restic.git
synced 2026-10-05 18:30:30 +00:00
Merge pull request #21796 from restic/go-1.25
Bump minimum go version to 1.25 & update dependencies
This commit is contained in:
@@ -456,8 +456,8 @@ func (s *sizeHistogram) Add(size uint64) {
|
||||
func (s sizeHistogram) String() string {
|
||||
var out strings.Builder
|
||||
|
||||
out.WriteString(fmt.Sprintf("Count: %d\n", s.count))
|
||||
out.WriteString(fmt.Sprintf("Total Size: %s\n", ui.FormatBytes(s.totalSize)))
|
||||
fmt.Fprintf(&out, "Count: %d\n", s.count)
|
||||
fmt.Fprintf(&out, "Total Size: %s\n", ui.FormatBytes(s.totalSize))
|
||||
|
||||
t := table.New()
|
||||
t.AddColumn("Size", "{{.SizeRange}}")
|
||||
@@ -506,7 +506,7 @@ func (s sizeHistogram) String() string {
|
||||
_ = t.Write(&out)
|
||||
|
||||
if len(s.oversized) > 0 {
|
||||
out.WriteString(fmt.Sprintf("Oversized: %v\n", s.oversized))
|
||||
fmt.Fprintf(&out, "Oversized: %v\n", s.oversized)
|
||||
}
|
||||
return out.String()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user