From 41e74084acc7f33f44402ba6ce4d878984b2f65a Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Sun, 17 Dec 2023 11:18:47 +0100 Subject: [PATCH] Chart temps tooltip rounding tweak https://github.com/seerge/g-helper/discussions/1744 --- app/Fans.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Fans.cs b/app/Fans.cs index b13901fd..1f3aee3c 100644 --- a/app/Fans.cs +++ b/app/Fans.cs @@ -599,7 +599,7 @@ namespace GHelper int Max = FanSensorControl.GetFanMax(device); if (fanRpm) - return (200 * Math.Round((float)(Min * 100 + (Max - Min) * percentage) / 200)).ToString() + unit; + return (200 * Math.Floor((float)(Min * 100 + (Max - Min) * percentage) / 200)).ToString() + unit; else return percentage + "%"; } @@ -1146,7 +1146,7 @@ namespace GHelper tip = true; } - labelTip.Text = Math.Round(curPoint.XValue) + "C, " + ChartYLabel((int)curPoint.YValues[0], device, " " + Properties.Strings.RPM); + labelTip.Text = Math.Floor(curPoint.XValue) + "C, " + ChartYLabel((int)curPoint.YValues[0], device, " " + Properties.Strings.RPM); labelTip.Top = e.Y + ((Control)sender).Top; labelTip.Left = e.X - 50;