Fix sensors

Signed-off-by: Vasiliy Doylov <nekodevelopper@gmail.com>
This commit is contained in:
Vasiliy Doylov 2025-03-02 12:28:43 +03:00
parent 8972f669d3
commit ca63caddc5
Signed by: NekoCWD
GPG key ID: B7BE22D44474A582

View file

@ -24,6 +24,7 @@ class TheCatTools.GUI.BoubleBar : Gtk.DrawingArea, Gtk.Orientable {
var radius = width / 2 - gap;
var value = value % 90;
value += 90;
value *= -1;
var position = radius + (height - radius * 2) * value / 180;
message ("%f = %f", value, position);