add old lci module

This commit is contained in:
qing committed 2026-08-02 20:15:07 +08:00
1 parent 38a6e815f0
commit 8499631091
171 files changed
+25562

No files matched your search

+14
View File
@@ -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