Skip to content

Commit

Permalink
feat: AA Display avg if *.isAvgEnabled true
Browse files Browse the repository at this point in the history
  • Loading branch information
tzebrowski committed Aug 20, 2023
1 parent cdfd184 commit eb0d88b
Showing 1 changed file with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,23 @@ internal class SimpleScreenRenderer(
footerValueTextSize
)

horizontalPos = drawingManager.drawText(
"avg",
horizontalPos,
verticalPos,
Color.DKGRAY,
footerTitleTextSize
)

horizontalPos = drawingManager.drawText(
metric.toNumber(metric.mean),
horizontalPos,
verticalPos,
Color.LTGRAY,
footerValueTextSize
)
if (metric.source.command.pid.historgam.isAvgEnabled) {
horizontalPos = drawingManager.drawText(
"avg",
horizontalPos,
verticalPos,
Color.DKGRAY,
footerTitleTextSize
)

horizontalPos = drawingManager.drawText(
metric.toNumber(metric.mean),
horizontalPos,
verticalPos,
Color.LTGRAY,
footerValueTextSize
)
}

drawingManager.drawAlertingLegend(metric, horizontalPos, verticalPos)

Expand Down

0 comments on commit eb0d88b

Please sign in to comment.