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"
"errors"
"fmt"
"os/exec"
"github.com/shirou/gopsutil/internal/common"
"os/exec"
)
func GetPageSize() (uint64, error) {

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

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

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

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

Loading…
Cancel
Save