瀏覽代碼

Z991239-5492 #comment feat: 调整进程内存获取

陈纪林80310970 1 年之前
父節點
當前提交
6006747d7e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Module/mod_ResourceWatcher/ResourceWatcherFSM.cpp

+ 1 - 1
Module/mod_ResourceWatcher/ResourceWatcherFSM.cpp

@@ -3336,7 +3336,7 @@ void ResourceWatcherFSM::GetSystemMemoryStatus()
         int tPid = it->first;
         double tmp = GetMemoryUsageGB(it->first);
 
-        if (tmp > 0.0)
+        if (tmp > 0.0 && tmp < 100)
         {
             processMem[tPid] = 100 * (tmp / totalMem);
         }