From c177249a57b00950d9351a1901264846bd12e511 Mon Sep 17 00:00:00 2001 From: sam-anthony Date: Tue, 12 Apr 2022 18:10:47 -0230 Subject: fix bug parsing pressure ratio from toml, remove stale code --- ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui.go') diff --git a/ui.go b/ui.go index 6926623..88b35b3 100644 --- a/ui.go +++ b/ui.go @@ -329,7 +329,7 @@ func updateCompImg() { min = selectedCompressor.MinY max = selectedCompressor.MaxY pr := pressureRatio[i] - maxPr := selectedCompressor.MaxPressureRatio + maxPr := selectedCompressor.MaxPR y := min - int(float32((min-max))*((pr-1.0)/(maxPr-1.0))) ps := m.Bounds().Dx() / 100 // Point size -- cgit v1.2.3