add old lci module
This commit is contained in:
1 parent
38a6e815f0
commit
8499631091
171 files changed
+25562
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#ifndef HD_MEM_H
|
||||
#define HD_MEM_H
|
||||
#include <iostream>
|
||||
#include <sys/sysinfo.h>
|
||||
|
||||
struct MemoryInfo {
|
||||
long totalMemory; /* 总内存(bytes) */
|
||||
long freeMemory; /* 空闲内存 */
|
||||
long usedMemory; /* 已用内存 */
|
||||
double usageRate; /* 使用率(%) */
|
||||
};
|
||||
|
||||
MemoryInfo getMemoryUsageWithSysinfo();
|
||||
#endif
|
||||
Reference in new issue
Block a user