From 87c64a51749fc06fdf0823160f95ce7da87b1b97 Mon Sep 17 00:00:00 2001 From: Shirou WAKAYAMA Date: Tue, 10 Jun 2014 14:35:59 +0900 Subject: [PATCH] go fmt --- disk_freebsd.go | 4 ++-- disk_freebsd_amd64.go | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/disk_freebsd.go b/disk_freebsd.go index 34514da..cf8f1dd 100644 --- a/disk_freebsd.go +++ b/disk_freebsd.go @@ -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) diff --git a/disk_freebsd_amd64.go b/disk_freebsd_amd64.go index 8dc0cd6..5e88963 100644 --- a/disk_freebsd_amd64.go +++ b/disk_freebsd_amd64.go @@ -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 */