调整循环延时时间限值

This commit is contained in:
Kimdiego2098
2023-11-21 16:27:11 +08:00
parent 21d794a0e5
commit 55d1efa212
2 changed files with 3 additions and 3 deletions

View File

@@ -109,7 +109,7 @@ public abstract class UpLoadBaseWithCacheT<DeviceT, VariableT> : UpLoadBase
CurrentDevice.DeviceVariableRunTimes.ForEach(a => { a.VariableValueChange += VariableValueChange; });
}
if (_uploadPropertyWithCache.CycleInterval <= 100) _uploadPropertyWithCache.CycleInterval = 100;
if (_uploadPropertyWithCache.CycleInterval <= 50) _uploadPropertyWithCache.CycleInterval = 50;
if (_uploadPropertyWithCache.UploadInterval <= 100) _uploadPropertyWithCache.UploadInterval = 100;
_exVariableTimerTick = new(_uploadPropertyWithCache.UploadInterval);
_exDeviceTimerTick = new(_uploadPropertyWithCache.UploadInterval);

View File

@@ -20,7 +20,7 @@ public class UploadPropertyWithCacheT : DriverPropertyBase
/// <summary>
/// 线程循环间隔
/// </summary>
[DeviceProperty("线程循环间隔", "最小10ms")]
[DeviceProperty("线程循环间隔", "最小50ms")]
public virtual int CycleInterval { get; set; } = 1000;
/// <summary>
/// 内存队列最大条数
@@ -47,7 +47,7 @@ public class UploadPropertyWithCacheT : DriverPropertyBase
/// <summary>
/// 上传间隔时间
/// </summary>
[DeviceProperty("上传间隔时间", "最小1000ms")]
[DeviceProperty("上传间隔时间", "最小100ms")]
public virtual int UploadInterval { get; set; } = 1000;
[DeviceProperty("是否选择全部变量", "")] public bool IsAllVariable { get; set; } = false;