Pull request: querylog: imp time cmp
Merge in DNS/adguard-home from imp-time-cmp to master Squashed commit of the following: commit d1e933b2b83dd8b5ffcd4a35e85270e722e5b3fd Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon May 17 17:41:54 2021 +0300 querylog: imp time cmp
This commit is contained in:
parent
5acae6e204
commit
397b0ccdf7
|
@ -45,7 +45,7 @@ func (s *searchParams) quickMatch(line string, findClient quickMatchClientFunc)
|
|||
|
||||
// match - checks if the logEntry matches the searchParams
|
||||
func (s *searchParams) match(entry *logEntry) bool {
|
||||
if !s.olderThan.IsZero() && entry.Time.UnixNano() >= s.olderThan.UnixNano() {
|
||||
if !s.olderThan.IsZero() && !entry.Time.Before(s.olderThan) {
|
||||
// Ignore entries newer than what was requested
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue