summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/shirou/gopsutil/mem/mem.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/shirou/gopsutil/mem/mem.go')
-rw-r--r--vendor/github.com/shirou/gopsutil/mem/mem.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/vendor/github.com/shirou/gopsutil/mem/mem.go b/vendor/github.com/shirou/gopsutil/mem/mem.go
index 87dfb53..fd8337a 100644
--- a/vendor/github.com/shirou/gopsutil/mem/mem.go
+++ b/vendor/github.com/shirou/gopsutil/mem/mem.go
@@ -6,11 +6,7 @@ import (
"github.com/shirou/gopsutil/internal/common"
)
-var invoke common.Invoker
-
-func init() {
- invoke = common.Invoke{}
-}
+var invoke common.Invoker = common.Invoke{}
// Memory usage statistics. Total, Available and Used contain numbers of bytes
// for human consumption.
@@ -49,6 +45,7 @@ type VirtualMemoryStat struct {
// Linux specific numbers
// https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s2-proc-meminfo.html
// https://www.kernel.org/doc/Documentation/filesystems/proc.txt
+ // https://www.kernel.org/doc/Documentation/vm/overcommit-accounting
Buffers uint64 `json:"buffers"`
Cached uint64 `json:"cached"`
Writeback uint64 `json:"writeback"`
@@ -58,6 +55,8 @@ type VirtualMemoryStat struct {
Slab uint64 `json:"slab"`
PageTables uint64 `json:"pagetables"`
SwapCached uint64 `json:"swapcached"`
+ CommitLimit uint64 `json:"commitlimit"`
+ CommittedAS uint64 `json:"committedas"`
}
type SwapMemoryStat struct {