Skip to content

Commit

Permalink
ui: add check for cpu usage
Browse files Browse the repository at this point in the history
Add a check, for cases when the value might no be
returned (cluster with mixed versions).

Part Of #87213

Release note: None
  • Loading branch information
maryliag committed Jan 26, 2023
1 parent 63aa313 commit 63caa61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export function makeStatementsColumns(
title: statisticsTableTitles.cpu(statType),
cell: cpuBar,
sort: (stmt: AggregateStatistics) =>
FixLong(Number(stmt.stats.exec_stats.cpu_nanos.mean)),
FixLong(Number(stmt.stats.exec_stats.cpu_nanos?.mean)),
},
{
name: "maxMemUsage",
Expand Down

0 comments on commit 63caa61

Please sign in to comment.