From a7bacd26dd1eeecb6f3b498bd09304ae4dcdd5d1 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Tue, 9 Jun 2020 15:16:08 -0600 Subject: [PATCH] change private field to store ms instead of minutes --- .../Comm/CommunicationStreamDebugging.cs | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/Pepperdash Core/Pepperdash Core/Comm/CommunicationStreamDebugging.cs b/Pepperdash Core/Pepperdash Core/Comm/CommunicationStreamDebugging.cs index 3050e6f..3f1624a 100644 --- a/Pepperdash Core/Pepperdash Core/Comm/CommunicationStreamDebugging.cs +++ b/Pepperdash Core/Pepperdash Core/Comm/CommunicationStreamDebugging.cs @@ -12,6 +12,9 @@ namespace PepperDash.Core /// public class CommunicationStreamDebugging { + /// + /// Device Key that this instance configures + /// public string ParentDeviceKey { get; private set; } /// @@ -21,7 +24,7 @@ namespace PepperDash.Core public eStreamDebuggingSetting DebugSetting { get; private set; } - private uint _DebugTimeoutMin; + private uint _DebugTimeoutInMs; private const uint _DefaultDebugTimeoutMin = 30; /// @@ -31,16 +34,7 @@ namespace PepperDash.Core { get { - return _DebugTimeoutMin; - } - } - - - private long _DebugTimeoutInMs - { - get - { - return DebugTimeoutMinutes * 60000; + return _DebugTimeoutInMs/60000; } } @@ -78,7 +72,7 @@ namespace PepperDash.Core /// public void SetDebuggingWithSpecificTimeout(eStreamDebuggingSetting setting, uint minutes) { - _DebugTimeoutMin = minutes; + _DebugTimeoutInMs = minutes * 60000; if (DebugExpiryPeriod != null) {