Skip to content

Commit 4e2d1aa

Browse files
author
mbrill-nt
committed
#67 Statistics now use the ShowBaseline property
1 parent 34b0181 commit 4e2d1aa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/panel/serviceDependencyGraph/ServiceDependencyGraph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ export class ServiceDependencyGraph extends PureComponent<PanelState, PanelState
410410
resolvedDrillDownLink={this.resolvedDrillDownLink}
411411
selectionStatistics={this.selectionStatistics}
412412
currentType={this.currentType}
413-
showBaselines={false}
413+
showBaselines={this.getSettings(true).showBaselines}
414414
receiving={this.receiving}
415415
sending={this.sending}
416416
/>

src/panel/statistics/Statistics.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,13 @@ export const Statistics: React.FC<StatisticsProps> = ({
7575
<td className="table--td--selection">{selectionStatistics.responseTime} ms</td>
7676
</tr>
7777
) : null;
78-
7978
var threshold = selectionStatistics.thresholdViolation ? (
8079
<td className="table--td--selection threshold--bad">
8180
Bad ({'>'} {selectionStatistics.threshold}ms)
8281
</td>
8382
) : (
84-
<td className="table--td--selection threshold--good"> Good "(&lt;= {selectionStatistics.threshold}ms)" </td>
83+
<td className="table--td--selection threshold--good"> Good (&lt;= {selectionStatistics.threshold}ms) </td>
8584
);
86-
8785
var baseline =
8886
showBaselines && selectionStatistics.threshold ? (
8987
<tr>

0 commit comments

Comments
 (0)