Skip to content

Commit

Permalink
Merge pull request #95 from CyberDem0n/bugfix/mtime-compare
Browse files Browse the repository at this point in the history
Compare file modification times using Equal method
  • Loading branch information
x4m committed May 8, 2018
2 parents c814838 + f5c4fd7 commit e5d2f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func HandleTar(bundle TarBundle, path string, info os.FileInfo, crypter Crypter)
// For details see
// https://www.postgresql.org/message-id/flat/F0627DEB-7D0D-429B-97A9-D321450365B4%40yandex-team.ru#F0627DEB-7D0D-429B-97A9-D321450365B4@yandex-team.ru

if wasInBase && (time == bf.MTime) {
if wasInBase && (time.Equal(bf.MTime)) {
// File was not changed since previous backup

fmt.Println("Skiped due to unchanged modification time")
Expand Down

0 comments on commit e5d2f9e

Please sign in to comment.