Explorar o código

fix a bug in IVSysMan.

yuchuli %!s(int64=3) %!d(string=hai) anos
pai
achega
25a02176ca
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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