diff --git a/cmd/snappr/main.go b/cmd/snappr/main.go index 7e5aa66..8319865 100644 --- a/cmd/snappr/main.go +++ b/cmd/snappr/main.go @@ -131,7 +131,9 @@ func main() { for i, period := range why { ps[i] = period.String() } - fmt.Fprintf(os.Stderr, "snappr: why: keep [%*d/%*d] %s :: %s\n", ndig, at+1, ndig, len(keep), times[at].Format("Mon 2006 Jan _2 15:04:05"), strings.Join(ps, ", ")) + if *Why { + fmt.Fprintf(os.Stderr, "snappr: why: keep [%*d/%*d] %s :: %s\n", ndig, at+1, ndig, len(keep), snapshots[at].Format("Mon 2006 Jan _2 15:04:05"), strings.Join(ps, ", ")) + } } else { pruned++ }