From 0ea8a2dbd8b6e8c270aca4c27dfd977338f8a5fd Mon Sep 17 00:00:00 2001 From: Justin LeCheminant Date: Mon, 4 Mar 2024 15:05:38 -0700 Subject: [PATCH] Fixing formatting bug --- IpViewer/Form1.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IpViewer/Form1.cs b/IpViewer/Form1.cs index 9b50484..31bdf24 100644 --- a/IpViewer/Form1.cs +++ b/IpViewer/Form1.cs @@ -109,7 +109,7 @@ private void SetAdapterInformationControls(AdapterInfo adapterInfo) IpViewerSettings.Instance.SaveSettings(); this.labelMacAddress.Text = adapterInfo.MacAddress; - this.labelSpeed.Text = $"{adapterInfo.Speed * 0.000000125} MegaBytes / sec"; + this.labelSpeed.Text = $"{(adapterInfo.Speed * 0.000000125):0.##} MegaBytes / sec"; this.labelAdapterStatus.Text = adapterInfo.OperationalStatus; this.labelInternalAddress.Text = adapterInfo.IpAddress; }