From f39fd18a5dfc097c7cc5d97cdd259c139b0c53b6 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Sat, 11 Jun 2022 23:08:18 -0500 Subject: [PATCH] More changes to updating and reduce bandwidth interval Updates are independent from the UI and the UI only updates with the system clock. These changes were made so the UI will instantly be updated at the same time, instead of waiting for the result, which could take a while with the ping for example. --- Network Monitor/MainWindow.xaml | 8 ++-- Network Monitor/MonitorView.xaml | 4 +- Network Monitor/MonitorView.xaml.cs | 28 +++++++++++++- Network Monitor/Monitors/BandwidthMonitor.cs | 6 +-- Network Monitor/Monitors/DummyMonitor.cs | 1 + Network Monitor/Monitors/LatencyMonitor.cs | 2 +- Network Monitor/Monitors/Monitor.cs | 40 ++++---------------- 7 files changed, 45 insertions(+), 44 deletions(-) diff --git a/Network Monitor/MainWindow.xaml b/Network Monitor/MainWindow.xaml index 3555031..44292b6 100644 --- a/Network Monitor/MainWindow.xaml +++ b/Network Monitor/MainWindow.xaml @@ -20,7 +20,7 @@ UseLayoutRounding="True" FontFamily="Consolas" MouseDown="MainWindow_OnMouseDown" - PreviewMouseWheel="Window_PreviewMouseWheel" + PreviewMouseWheel="Window_PreviewMouseWheel" Closed="Window_OnClosed">