mirror of
https://gitee.com/ThingsGateway/ThingsGateway.git
synced 2025-10-25 04:33:09 +08:00
调整循环延时时间限值
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user