Publish Zonghengjia Windows 0.3.18 client source
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user