From 548caace0e0673b8e14fdc640b7d10c990a063d5 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Fri, 18 Mar 2022 12:51:36 +0100 Subject: [PATCH] fix: adjusted network chart size --- Kit/plugins/Charts.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kit/plugins/Charts.swift b/Kit/plugins/Charts.swift index 1976b5b0..53b84116 100644 --- a/Kit/plugins/Charts.swift +++ b/Kit/plugins/Charts.swift @@ -163,10 +163,10 @@ public class NetworkChartView: NSView { return (CGFloat(point) * xRatio) + (dirtyRect.origin.x - lineWidth) } let uploadYPoint = { (point: Int) -> CGFloat in - return CGFloat((points[point].0 * Double(dirtyRect.height/2)) / uploadMax) + dirtyRect.origin.y + dirtyRect.height/2 + lineWidth - offset + return CGFloat((points[point].0 * Double(dirtyRect.height/2)) / uploadMax) + dirtyRect.origin.y + dirtyRect.height/2 - offset } let downloadYPoint = { (point: Int) -> CGFloat in - return (dirtyRect.height/2 + dirtyRect.origin.y + offset - lineWidth) - CGFloat((points[point].1 * Double(dirtyRect.height/2)) / downloadMax) + return (dirtyRect.height/2 + dirtyRect.origin.y + offset) - CGFloat((points[point].1 * Double(dirtyRect.height/2)) / downloadMax) } let uploadlinePath = NSBezierPath()