-: fix qlog test on Windows

This commit is contained in:
Andrey Meshkov
2020-04-15 14:11:31 +03:00
parent b9b42997af
commit e96fd6e42d
2 changed files with 4 additions and 2 deletions

View File

@@ -206,7 +206,9 @@ func (l *queryLog) getData(params getDataParams) map[string]interface{} {
fileEntries, oldest, total := l.searchFiles(params)
if params.OlderThan.IsZero() {
params.OlderThan = now
// In case if the timer is not precise (for instance, on Windows)
// We really want to get all records including those added just before the call
params.OlderThan = now.Add(time.Millisecond)
}
// add from memory buffer