mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-14 19:29:16 +08:00
Merge branch 'master' of github.com:shirou/gopsutil
This commit is contained in:
commit
70d3719650
@ -43,7 +43,7 @@ Usage
|
|||||||
fmt.Printf("Total: %v, Free:%v, UsedPercent:%f%%\n", v.Total, v.Free, v.UsedPercent)
|
fmt.Printf("Total: %v, Free:%v, UsedPercent:%f%%\n", v.Total, v.Free, v.UsedPercent)
|
||||||
|
|
||||||
// convert to JSON. String() is also implemented
|
// convert to JSON. String() is also implemented
|
||||||
fmt.Println(d)
|
fmt.Println(v)
|
||||||
}
|
}
|
||||||
|
|
||||||
The output is below.
|
The output is below.
|
||||||
@ -63,7 +63,7 @@ see http://godoc.org/github.com/shirou/gopsutil
|
|||||||
More info
|
More info
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
To becomes more useful, add more information.
|
To becomes more useful, I have some methods which produces more information.
|
||||||
|
|
||||||
- Hostinfo() (linux)
|
- Hostinfo() (linux)
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ To becomes more useful, add more information.
|
|||||||
|
|
||||||
- various status
|
- various status
|
||||||
|
|
||||||
Some codes are ported some functions from Ohai. very thanks.
|
Some codes are ported from Ohai. many thanks.
|
||||||
|
|
||||||
|
|
||||||
Current Status
|
Current Status
|
||||||
@ -198,7 +198,7 @@ Related works
|
|||||||
- go-ps: https://github.com/mitchellh/go-ps
|
- go-ps: https://github.com/mitchellh/go-ps
|
||||||
- ohai: https://github.com/opscode/ohai/
|
- ohai: https://github.com/opscode/ohai/
|
||||||
|
|
||||||
I have referenced these great works.
|
I have influenced from these great works.
|
||||||
|
|
||||||
How to Contributing
|
How to Contributing
|
||||||
---------------------------
|
---------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user