[agent-go] [status] basically accomplished the status module
This commit is contained in:
@@ -13,8 +13,8 @@ type MemoryStatus struct {
|
||||
UsedVirtualMemory uint64
|
||||
}
|
||||
|
||||
func GetMemoryStatus() (MemoryStatus, error) {
|
||||
var memoryStatus MemoryStatus
|
||||
func GetMemoryStatus() (*MemoryStatus, error) {
|
||||
var memoryStatus *MemoryStatus
|
||||
|
||||
virtualMemoryStat, err := mem.VirtualMemory()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user