pull/4/head
Shirou WAKAYAMA 11 years ago
parent 41d2beb271
commit 87c64a5174

@ -3,9 +3,9 @@
package gopsutil
import (
"errors"
"syscall"
"unsafe"
"errors"
)
func DiskPartitions(all bool) ([]DiskPartitionStat, error) {
@ -86,7 +86,7 @@ func DiskIOCounters() (map[string]DiskIOCountersStat, error) {
return nil, errors.New("not implemented yet")
// statinfo->devinfo->devstat
// /usr/include/devinfo.h
// /usr/include/devinfo.h
// get length
count, err := Getfsstat(nil, MNT_WAIT)

@ -54,7 +54,6 @@ type Statfs struct {
FMntonname [MNAMELEN]byte /* directory on which mounted */
}
// /usr/include/devstat.h
// devstat_getdevs()
// kern.devstat.all -> devstats list struct
@ -65,7 +64,7 @@ type Statfs struct {
// long generation;
// int numdevs;
// };
//
//
// struct statinfo {
// long cp_time[CPUSTATES];
// long tk_nin;
@ -74,8 +73,7 @@ type Statfs struct {
// long double snap_time;
// };
// /usr/include/devinfo.h
// /usr/include/devinfo.h
// struct devinfo_dev {
// devinfo_handle_t dd_handle; /* device handle */

Loading…
Cancel
Save