run go fmt ./...

pull/310/head
Cameron Sparr 8 years ago
parent 3b18639664
commit a213bf5e6d
No known key found for this signature in database
GPG Key ID: 19E67263DCB25D0F

@ -7,8 +7,8 @@ import (
"encoding/binary" "encoding/binary"
"errors" "errors"
"fmt" "fmt"
"os/exec"
"github.com/shirou/gopsutil/internal/common" "github.com/shirou/gopsutil/internal/common"
"os/exec"
) )
func GetPageSize() (uint64, error) { func GetPageSize() (uint64, error) {

@ -4,7 +4,6 @@
Input to cgo -godefs. Input to cgo -godefs.
*/ */
package mem package mem
/* /*
@ -31,7 +30,5 @@ const (
sizeOfBcachestats = C.sizeof_struct_bcachestats sizeOfBcachestats = C.sizeof_struct_bcachestats
) )
type Uvmexp C.struct_uvmexp type Uvmexp C.struct_uvmexp
type Bcachestats C.struct_bcachestats type Bcachestats C.struct_bcachestats

@ -12,7 +12,7 @@ import (
) )
func ParseNetstat(output string, mode string, func ParseNetstat(output string, mode string,
iocs map[string]IOCountersStat) (error) { iocs map[string]IOCountersStat) error {
lines := strings.Split(output, "\n") lines := strings.Split(output, "\n")
exists := make([]string, 0, len(lines)-1) exists := make([]string, 0, len(lines)-1)

@ -3,8 +3,8 @@
package process package process
import ( import (
"bytes"
"C" "C"
"bytes"
"encoding/binary" "encoding/binary"
"strings" "strings"
"syscall" "syscall"
@ -12,8 +12,8 @@ import (
cpu "github.com/shirou/gopsutil/cpu" cpu "github.com/shirou/gopsutil/cpu"
"github.com/shirou/gopsutil/internal/common" "github.com/shirou/gopsutil/internal/common"
net "github.com/shirou/gopsutil/net"
mem "github.com/shirou/gopsutil/mem" mem "github.com/shirou/gopsutil/mem"
net "github.com/shirou/gopsutil/net"
) )
// MemoryInfoExStat is different between OSes // MemoryInfoExStat is different between OSes

@ -51,7 +51,6 @@ const (
ArgMax = 256 * 1024 // sys/syslimits.h:#define ARG_MAX ArgMax = 256 * 1024 // sys/syslimits.h:#define ARG_MAX
) )
const ( const (
sizeofPtr = C.sizeofPtr sizeofPtr = C.sizeofPtr
sizeofShort = C.sizeof_short sizeofShort = C.sizeof_short

Loading…
Cancel
Save