@ -3,7 +3,7 @@
package cpu
import "github.com/shirou/gopsutil/common"
import "github.com/shirou/gopsutil/internal/common"
func perCPUTimes() ([]CPUTimesStat, error) {
return []CPUTimesStat{}, common.NotImplementedError
@ -9,7 +9,7 @@ import (
"strconv"
"strings"
common "github.com/shirou/gopsutil/common"
"github.com/shirou/gopsutil/internal/common"
)
// sys/resource.h
@ -10,7 +10,7 @@ import (
"github.com/StackExchange/wmi"
type Win32_Processor struct {
@ -6,7 +6,7 @@ import (
"syscall"
"unsafe"
func DiskPartitions(all bool) ([]DiskPartitionStat, error) {
const (
var (
@ -13,7 +13,7 @@ import (
func HostInfo() (*HostInfoStat, error) {
@ -11,8 +11,8 @@ import (
process "github.com/shirou/gopsutil/common/process"
process "github.com/shirou/gopsutil/process"
@ -5,7 +5,7 @@ package load
import (
func LoadAvg() (*LoadAvgStat, error) {
package load
@ -7,7 +7,7 @@ import (
func getPageSize() (uint64, error) {
func VirtualMemory() (*VirtualMemoryStat, error) {
"github.com/shirou/gopsutil/common"
// example of netstat -idbn output on yosemite
func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) {
@ -8,7 +8,7 @@ import (
"github.com/shirou/gopsutil/cpu"
"github.com/shirou/gopsutil/net"
"encoding/binary"
cpu "github.com/shirou/gopsutil/cpu"
net "github.com/shirou/gopsutil/net"
@ -12,7 +12,7 @@ import (
"github.com/shirou/w32"