run go fmt ./...
@ -7,8 +7,8 @@ import (
"encoding/binary"
"errors"
"fmt"
"os/exec"
"github.com/shirou/gopsutil/internal/common"
)
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"
"strings"
"syscall"
@ -12,8 +12,8 @@ import (
cpu "github.com/shirou/gopsutil/cpu"
net "github.com/shirou/gopsutil/net"
mem "github.com/shirou/gopsutil/mem"
// 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