Skip to content

Commit

Permalink
UpdateWith: Update access time on URL change
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Sep 7, 2024
1 parent 1c31a02 commit 9bc32ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/analyze/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func (i IPStats) UpdateWith(item parser.LogItem) IPStats {
if i.LastURLUpdate.Before(item.Time) {
i.LastURL = item.URL
i.LastURLUpdate = item.Time
i.LastURLAccess = item.Time
}
} else {
if i.LastURLAccess.Before(item.Time) {
Expand Down

0 comments on commit 9bc32ac

Please sign in to comment.