diff --git a/internal/ui/backup.go b/internal/ui/backup.go index 1ae3babac..9449f0193 100644 --- a/internal/ui/backup.go +++ b/internal/ui/backup.go @@ -151,12 +151,10 @@ func (b *Backup) CompleteItem(messageType, item string, previous, current *resti // ReportTotal sets the total stats up to now func (b *Backup) ReportTotal(item string, start time.Time, s archiver.ScanStats) { - if item == "" { - b.V("scan finished in %.3fs: %v files, %s", - time.Since(start).Seconds(), - s.Files, formatBytes(s.Bytes), - ) - } + b.V("scan finished in %.3fs: %v files, %s", + time.Since(start).Seconds(), + s.Files, formatBytes(s.Bytes), + ) } // Reset status diff --git a/internal/ui/json/backup.go b/internal/ui/json/backup.go index 51f661030..b8a3432d6 100644 --- a/internal/ui/json/backup.go +++ b/internal/ui/json/backup.go @@ -157,17 +157,14 @@ func (b *Backup) CompleteItem(messageType, item string, previous, current *resti // ReportTotal sets the total stats up to now func (b *Backup) ReportTotal(item string, start time.Time, s archiver.ScanStats) { - if item == "" { - if b.v >= 2 { - b.print(verboseUpdate{ - MessageType: "status", - Action: "scan_finished", - Duration: time.Since(start).Seconds(), - DataSize: s.Bytes, - TotalFiles: s.Files, - }) - } - return + if b.v >= 2 { + b.print(verboseUpdate{ + MessageType: "status", + Action: "scan_finished", + Duration: time.Since(start).Seconds(), + DataSize: s.Bytes, + TotalFiles: s.Files, + }) } }