If there are no more older entries, `"oldest":""` is returned.
This commit is contained in:
parent
15e714350c
commit
bbc4eda39e
|
@ -1302,6 +1302,8 @@ Response:
|
|||
|
||||
The most recent entries are at the top of list.
|
||||
|
||||
If there are no more older entries, `"oldest":""` is returned.
|
||||
|
||||
|
||||
### 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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue