mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-02-16 18:09:47 +03:00
If there are no more older entries, "oldest":""
is returned.
This commit is contained in:
parent
15e714350c
commit
bbc4eda39e
2 changed files with 5 additions and 1 deletions
|
@ -1302,6 +1302,8 @@ Response:
|
||||||
|
|
||||||
The most recent entries are at the top of list.
|
The most recent entries are at the top of list.
|
||||||
|
|
||||||
|
If there are no more older entries, `"oldest":""` is returned.
|
||||||
|
|
||||||
|
|
||||||
### API: Set querylog parameters
|
### API: Set querylog parameters
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,9 @@ func (l *queryLog) searchFiles(params *searchParams) ([]*logEntry, time.Time, in
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
oldest = time.Unix(0, oldestNano)
|
if oldestNano != 0 {
|
||||||
|
oldest = time.Unix(0, oldestNano)
|
||||||
|
}
|
||||||
return entries, oldest, total
|
return entries, oldest, total
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue