Skip to content

Commit

Permalink
ui: fix contention chart on Statement Details page
Browse files Browse the repository at this point in the history
This commit adds the proper multiplication factor to
contention value.

It also fixes two small spacing issues.

Release note (bug fix): Use proper multiplying factor to
contention value on Statement Details page.
  • Loading branch information
maryliag committed Jun 16, 2022
1 parent 1634866 commit d77e06d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
}

.cl-table-container {
padding: 18px 24px 18px 0px;
padding: 20px 24px 18px 0px;
}
.cl-table-wrapper {
padding: 9.55px 20px 17px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ export class StatementDetails extends React.Component<
available until the statement is sampled.
</div>
);
const noSamples = statementSampled ? "" : " (no samples)";

const db = databases ? (
<Text>{databases}</Text>
Expand Down Expand Up @@ -781,7 +782,7 @@ export class StatementDetails extends React.Component<
<Row gutter={24}>
<Col className="gutter-row" span={12}>
<BarGraphTimeSeries
title="Contention"
title={`Contention${noSamples}`}
alignedData={contentionTimeseries}
uPlotOptions={contentionOps}
tooltip={unavailableTooltip}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function generateContentionTimeseries(

stats.forEach(function (stat: statementStatisticsPerAggregatedTs) {
ts.push(TimestampToNumber(stat.aggregated_ts) * 1e3);
count.push(stat.stats.exec_stats.contention_time.mean);
count.push(stat.stats.exec_stats.contention_time.mean * 1e9);
});

return [ts, count];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
.table-area {
position: relative;
overflow-x: scroll;
min-height: 480px;
min-height: 590px;
}

.reset-btn-area {
Expand Down

0 comments on commit d77e06d

Please sign in to comment.