Browse Source

fix a bug in IVSysMan.

yuchuli 3 years ago
parent
commit
25a02176ca
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/tool/IVSysMan/cpumem.cpp

+ 3 - 1
src/tool/IVSysMan/cpumem.cpp

@@ -10,6 +10,8 @@
 #define PROCESS_ITEM 14
 #define THREAD_LINE 34
 
+#include <QFile>
+
 #ifndef nullptr
 #define nullptr 0
 #endif
@@ -339,7 +341,7 @@ int get_pid(const char* process_name, const char* user = nullptr)
 }
 
 
-#include <QFile>
+
 int get_proc_mem_thread(unsigned  int pid,unsigned int & nmem,unsigned int & nthread)
 {
 #ifdef IV_OS_UNIX