WPFProject/ResourceListener.cs
@@ -1,10 +1,8 @@ using HMI.Simple.Util; using log4net; using log4net; using System; using System.Diagnostics; using System.Management; using System.Timers; using System.Xml.Linq; namespace WPFProject { @@ -97,10 +95,10 @@ totalCpuRate = totalCpuRate, totalRemRate = usagePercent }); log.Info(info); if (usagePercent > 80) { // AlarmUtil.CreateAlarm("App", "内存占用过高,超80%", out _); log.Info(info); //AlarmUtil.CreateAlarm("App", "内存占用过高,超80%", out _); } } }