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

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

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

Loading…
Cancel
Save