File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
dashboard/src/main/home/cluster-dashboard/expanded-chart/logs-section Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -298,10 +298,10 @@ export const useLogs = (
298
298
flushLogsBuffer ( true ) ;
299
299
const websocketKey = `${ currentPod } -${ namespace } -websocket` ;
300
300
const endDate = dayjs ( setDate ) ;
301
- const oneDayAgo = endDate . subtract ( 1 , "day " ) ;
301
+ const sixHoursAgo = endDate . subtract ( 6 , "hour " ) ;
302
302
303
303
const { logs : initialLogs , previousCursor, nextCursor } = await queryLogs (
304
- oneDayAgo . toISOString ( ) ,
304
+ sixHoursAgo . toISOString ( ) ,
305
305
endDate . toISOString ( ) ,
306
306
Direction . backward
307
307
) ;
@@ -335,10 +335,10 @@ export const useLogs = (
335
335
// we query by setting the endDate equal to the previous startDate, and setting the direction
336
336
// to "backward"
337
337
const refDate = paginationInfo . previousCursor ?? dayjs ( ) . toISOString ( ) ;
338
- const oneDayAgo = dayjs ( refDate ) . subtract ( 1 , "day " ) ;
338
+ const sixHoursAgo = dayjs ( refDate ) . subtract ( 6 , "hour " ) ;
339
339
340
340
const { logs : newLogs , previousCursor } = await queryLogs (
341
- oneDayAgo . toISOString ( ) ,
341
+ sixHoursAgo . toISOString ( ) ,
342
342
refDate ,
343
343
Direction . backward
344
344
) ;
You can’t perform that action at this time.
0 commit comments