Skip to content

Commit

Permalink
Fix scope visualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmonettas committed Oct 22, 2024
1 parent 3440c68 commit 200b6f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
(handle [^long now]
(let [maxs (apply max captured-samples)
mins (apply min captured-samples)
sample-range (- maxs mins)
sample-range (* 2 (max (Math/abs maxs) (Math/abs mins)))
scale (/ (- canvas-height (* 2 top-bottom-margins))
(if (zero? sample-range) 1 sample-range))]
(.clearRect gc 0 0 canvas-width canvas-height)
Expand Down

0 comments on commit 200b6f2

Please sign in to comment.