Skip to content

Commit

Permalink
tidy up js
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Fiedorowicz <[email protected]>
  • Loading branch information
mfiedorowicz committed Sep 18, 2024
1 parent 8011a1d commit 5aa6bc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions netbox_diode_plugin/templates/diode/ingestion_logs.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ <h4 class="alert-heading">{% trans "Error" %}</h4>
<script type="text/javascript">
function drawGauge(ctx, value, color) {
const pixelRatio = window.devicePixelRatio || 1;
const parentWidth = ctx.canvas.parentElement.querySelector('div.metric-label').clientWidth;
const width = parentWidth;
const width = ctx.canvas.parentElement.querySelector('div.metric-label').clientWidth;
const height = width/2;

// Scale the canvas
Expand Down

0 comments on commit 5aa6bc2

Please sign in to comment.