Publish Zonghengjia Windows 0.3.18 client source

This commit is contained in:
2026-11-15 22:17:39 +08:00
parent ebec81ceb1
commit eb90ef4042
15 changed files with 1575 additions and 1680 deletions
+6 -1
View File
@@ -66,7 +66,12 @@ internal sealed class TrafficChart : Control
base.OnPaint(e);
_timeline.AdvanceClock();
var points = VisiblePoints();
var peak = points.Length == 0 ? 1024 : Math.Max(1024, points.Max(p => Math.Max(p.Up, p.Down)));
var peak = points.Length == 0 ? 1024 : Math.Max(1024, points.Max(p => DisplayedSeries switch
{
TrafficChartSeries.Upload => p.Up,
TrafficChartSeries.Download => p.Down,
_ => Math.Max(p.Up, p.Down),
}));
var axis = ChartAxisY.Create(peak, speed: true);
var g = e.Graphics;
var scale = DeviceDpi / 96f;