mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-26 13:48:59 +08:00
Rebrandoning so we can patch this library and have it work in our Godeps.
This commit is contained in:
parent
de9cd47bb0
commit
1b9883dc76
@ -3,7 +3,7 @@
|
||||
|
||||
package cpu
|
||||
|
||||
import "github.com/shirou/gopsutil/internal/common"
|
||||
import "github.com/yhat/gopsutil/internal/common"
|
||||
|
||||
func perCPUTimes() ([]CPUTimesStat, error) {
|
||||
return []CPUTimesStat{}, common.NotImplementedError
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
// sys/resource.h
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
var cpu_tick = float64(100)
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
"github.com/StackExchange/wmi"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
type Win32_Processor struct {
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func DiskPartitions(all bool) ([]DiskPartitionStat, error) {
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/StackExchange/wmi"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -11,8 +11,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
cpu "github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
cpu "github.com/yhat/gopsutil/cpu"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
// GetDockerIDList returnes a list of DockerID.
|
||||
|
@ -5,8 +5,8 @@ package docker
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/cpu"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
// GetDockerIDList returnes a list of DockerID.
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func HostInfo() (*HostInfoStat, error) {
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
type LSB struct {
|
||||
|
@ -11,8 +11,8 @@ import (
|
||||
|
||||
"github.com/StackExchange/wmi"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
process "github.com/shirou/gopsutil/process"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
process "github.com/yhat/gopsutil/process"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -5,7 +5,7 @@ package load
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func LoadAvg() (*LoadAvgStat, error) {
|
||||
|
@ -5,7 +5,7 @@ package load
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func LoadAvg() (*LoadAvgStat, error) {
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func LoadAvg() (*LoadAvgStat, error) {
|
||||
|
@ -3,7 +3,7 @@
|
||||
package load
|
||||
|
||||
import (
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func LoadAvg() (*LoadAvgStat, error) {
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func getPageSize() (uint64, error) {
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"errors"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func VirtualMemory() (*VirtualMemoryStat, error) {
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func VirtualMemory() (*VirtualMemoryStat, error) {
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
var invoke common.Invoker
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
// example of netstat -idbn output on yosemite
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) {
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
// NetIOCounters returnes network I/O statistics for every network
|
||||
|
@ -5,7 +5,7 @@ package net
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
// Return a list of network connections opened.
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
"github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/cpu"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
var invoke common.Invoker
|
||||
|
@ -10,9 +10,9 @@ import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/net"
|
||||
"github.com/yhat/gopsutil/cpu"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/net"
|
||||
)
|
||||
|
||||
// copied from sys/sysctl.h
|
||||
|
@ -9,9 +9,9 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
cpu "github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
net "github.com/shirou/gopsutil/net"
|
||||
cpu "github.com/yhat/gopsutil/cpu"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
net "github.com/yhat/gopsutil/net"
|
||||
)
|
||||
|
||||
// MemoryInfoExStat is different between OSes
|
||||
|
@ -12,10 +12,10 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/host"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/net"
|
||||
"github.com/yhat/gopsutil/cpu"
|
||||
"github.com/yhat/gopsutil/host"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/net"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
var mu sync.Mutex
|
||||
|
@ -10,11 +10,11 @@ import (
|
||||
"unsafe"
|
||||
|
||||
"github.com/StackExchange/wmi"
|
||||
"github.com/shirou/w32"
|
||||
"github.com/yhat/w32"
|
||||
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
cpu "github.com/shirou/gopsutil/cpu"
|
||||
net "github.com/shirou/gopsutil/net"
|
||||
"github.com/yhat/gopsutil/internal/common"
|
||||
cpu "github.com/yhat/gopsutil/cpu"
|
||||
net "github.com/yhat/gopsutil/net"
|
||||
)
|
||||
|
||||
const (
|
||||
|
Loading…
x
Reference in New Issue
Block a user