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,11 +95,11 @@
                        totalCpuRate = totalCpuRate,
                        totalRemRate = usagePercent
                    });
                    log.Info(info);
                    //if (usagePercent > 80)
                    //{
                    //    AlarmUtil.CreateAlarm("App", "内存占用过高,超80%", out _);
                    //}
                    if (usagePercent > 80)
                    {
                        log.Info(info);
                        //AlarmUtil.CreateAlarm("App", "内存占用过高,超80%", out _);
                    }
                }
            }
            catch (Exception ex)