Merge branch 'master' of github.com:shirou/gopsutil

pull/4/head
Shirou WAKAYAMA 11 years ago
commit 172ac637da

@ -26,13 +26,14 @@ Usage
:: ::
import ( import (
"github.com/shirou/gopsutil"
"fmt"
"encoding/json" "encoding/json"
"fmt"
"github.com/shirou/gopsutil"
) )
func main(){ func main() {
v, _ := gopsutil.Virtual_memory() v, _ := gopsutil.VirtualMemory()
// return value is struct // return value is struct
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)

Loading…
Cancel
Save