Skip to content

Commit

Permalink
cmd/snapper: Actually process --why properly
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaskin committed Nov 15, 2023
1 parent 9a5d346 commit 41d8613
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/snappr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++
}
Expand Down

0 comments on commit 41d8613

Please sign in to comment.