If there are no more older entries, `"oldest":""` is returned.

This commit is contained in:
Simon Zolin 2020-06-16 12:10:17 +03:00
parent 15e714350c
commit bbc4eda39e
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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
}