Skip to content

Commit fad95cb

Browse files
committed
Issue #22: use the nanoseconds instead
1 parent 8c6b746 commit fad95cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/datasource.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@ export class QuickwitDataSource
435435
private makeLogContextDataRequest = (row: LogRowModel, options?: LogRowContextOptions) => {
436436
const direction = options?.direction || LogRowContextQueryDirection.Backward;
437437
const searchAfterNs = row.dataFrame.fields.find((f) => f.name === 'sort')?.values.get(row.rowIndex) ?? [row.timeEpochNs]
438-
const searchAfterMs = [Math.round(searchAfterNs[0]/1000000)]
439438

440439
const logQuery: Logs = {
441440
type: 'logs',
@@ -445,7 +444,7 @@ export class QuickwitDataSource
445444
// Sorting of results in the context query
446445
sortDirection: direction === LogRowContextQueryDirection.Backward ? 'desc' : 'asc',
447446
// Used to get the next log lines before/after the current log line using sort field of selected log line
448-
searchAfter: searchAfterMs,
447+
searchAfter: searchAfterNs,
449448
},
450449
};
451450

0 commit comments

Comments
 (0)