From 4ec4eb830f5288835c077e93749ea5ee178f572c Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Mon, 23 Mar 2020 14:14:38 -0500 Subject: [PATCH] Display input delay as a double --- DS4Windows/DS4Library/DS4Device.cs | 2 +- DS4Windows/Properties/Resources.Designer.cs | 2 +- DS4Windows/Properties/Resources.resx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DS4Windows/DS4Library/DS4Device.cs b/DS4Windows/DS4Library/DS4Device.cs index 5ebc571..afa3ed6 100644 --- a/DS4Windows/DS4Library/DS4Device.cs +++ b/DS4Windows/DS4Library/DS4Device.cs @@ -810,7 +810,7 @@ namespace DS4Windows tempLatencyCount++; //Latency = latencyQueue.Average(); - Latency = latencySum / tempLatencyCount; + Latency = latencySum / (double)tempLatencyCount; readWaitEv.Set(); diff --git a/DS4Windows/Properties/Resources.Designer.cs b/DS4Windows/Properties/Resources.Designer.cs index 9cacb64..1ae264b 100644 --- a/DS4Windows/Properties/Resources.Designer.cs +++ b/DS4Windows/Properties/Resources.Designer.cs @@ -667,7 +667,7 @@ namespace DS4WinWPF.Properties { } /// - /// Looks up a localized string similar to Input Delay: {0} ms. + /// Looks up a localized string similar to Input Delay: {0:0.##} ms. /// public static string InputDelay { get { diff --git a/DS4Windows/Properties/Resources.resx b/DS4Windows/Properties/Resources.resx index b536d46..ce5408b 100644 --- a/DS4Windows/Properties/Resources.resx +++ b/DS4Windows/Properties/Resources.resx @@ -314,7 +314,7 @@ If removing DS4Windows, You can delete the settings following the profile folder link - Input Delay: {0} ms + Input Delay: {0:0.##} ms Install Complete