mirror of
https://gitee.com/ThingsGateway/ThingsGateway.git
synced 2025-10-21 03:01:28 +08:00
硬件信息获取添加延时
This commit is contained in:
@@ -11,7 +11,7 @@ using UAParser;
|
||||
|
||||
namespace ThingsGateway.Web.Foundation
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
/// <inheritdoc/>
|
||||
public class TGHardwareInfo
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
@@ -118,7 +118,7 @@ namespace ThingsGateway.Web.Foundation
|
||||
_logger = loggerFactory.CreateLogger(nameof(HardwareInfoService));
|
||||
});
|
||||
|
||||
_ = Task.Run(() =>
|
||||
_ = Task.Run(async () =>
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
@@ -127,6 +127,7 @@ namespace ThingsGateway.Web.Foundation
|
||||
hardwareInfo.RefreshDriveList();
|
||||
hardwareInfo.RefreshNetworkAdapterList();
|
||||
hardwareInfo.RefreshCPUList();
|
||||
await Task.Delay(5000);
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user