硬件信息获取添加延时

This commit is contained in:
2248356998 qq.com
2023-03-30 20:51:08 +08:00
parent 829371b032
commit 0b86340a8d

View File

@@ -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);
}
});