mirror of
https://github.com/fankes/komari-agent.git
synced 2026-02-04 12:17:30 +08:00
feat: #48 添加MemoryReportRawUsed 参数
This commit is contained in:
@@ -25,7 +25,7 @@ func Ram() RamInfo {
|
||||
return raminfo
|
||||
}
|
||||
raminfo.Total = v.Total
|
||||
if runtime.GOOS == "windows" {
|
||||
if runtime.GOOS == "windows" || !flags.MemoryReportRawUsed {
|
||||
raminfo.Used = v.Total - v.Available
|
||||
} else {
|
||||
raminfo.Used = v.Total - v.Free - v.Buffers - v.Cached
|
||||
|
||||
Reference in New Issue
Block a user