From 1b9883dc7610e938324f4a79f15e348eb04dba1b Mon Sep 17 00:00:00 2001 From: "Ryan J. O'Neil" Date: Tue, 15 Dec 2015 14:51:35 -0500 Subject: [PATCH] Rebrandoning so we can patch this library and have it work in our Godeps. --- cpu/cpu_darwin_nocgo.go | 2 +- cpu/cpu_freebsd.go | 2 +- cpu/cpu_linux.go | 2 +- cpu/cpu_windows.go | 2 +- disk/disk_darwin.go | 2 +- disk/disk_freebsd.go | 2 +- disk/disk_linux.go | 2 +- disk/disk_windows.go | 2 +- docker/docker_linux.go | 4 ++-- docker/docker_notlinux.go | 4 ++-- host/host_darwin.go | 2 +- host/host_freebsd.go | 2 +- host/host_linux.go | 2 +- host/host_windows.go | 4 ++-- load/load_darwin.go | 2 +- load/load_freebsd.go | 2 +- load/load_linux.go | 2 +- load/load_windows.go | 2 +- mem/mem_darwin.go | 2 +- mem/mem_freebsd.go | 2 +- mem/mem_linux.go | 2 +- mem/mem_windows.go | 2 +- net/net.go | 2 +- net/net_darwin.go | 2 +- net/net_freebsd.go | 2 +- net/net_linux.go | 2 +- net/net_unix.go | 2 +- net/net_windows.go | 2 +- process/process.go | 4 ++-- process/process_darwin.go | 6 +++--- process/process_freebsd.go | 6 +++--- process/process_linux.go | 8 ++++---- process/process_test.go | 2 +- process/process_windows.go | 8 ++++---- 34 files changed, 48 insertions(+), 48 deletions(-) diff --git a/cpu/cpu_darwin_nocgo.go b/cpu/cpu_darwin_nocgo.go index 0b7d1f9..1f2bfd2 100644 --- a/cpu/cpu_darwin_nocgo.go +++ b/cpu/cpu_darwin_nocgo.go @@ -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 diff --git a/cpu/cpu_freebsd.go b/cpu/cpu_freebsd.go index 5df67b3..c03b87f 100644 --- a/cpu/cpu_freebsd.go +++ b/cpu/cpu_freebsd.go @@ -9,7 +9,7 @@ import ( "strconv" "strings" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) // sys/resource.h diff --git a/cpu/cpu_linux.go b/cpu/cpu_linux.go index 8dbbd85..5c56f99 100644 --- a/cpu/cpu_linux.go +++ b/cpu/cpu_linux.go @@ -9,7 +9,7 @@ import ( "strconv" "strings" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) var cpu_tick = float64(100) diff --git a/cpu/cpu_windows.go b/cpu/cpu_windows.go index 408d6a6..29a35a9 100644 --- a/cpu/cpu_windows.go +++ b/cpu/cpu_windows.go @@ -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 { diff --git a/disk/disk_darwin.go b/disk/disk_darwin.go index fbf97c6..e51ac56 100644 --- a/disk/disk_darwin.go +++ b/disk/disk_darwin.go @@ -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) { diff --git a/disk/disk_freebsd.go b/disk/disk_freebsd.go index 7e32c4b..883e921 100644 --- a/disk/disk_freebsd.go +++ b/disk/disk_freebsd.go @@ -9,7 +9,7 @@ import ( "syscall" "unsafe" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) const ( diff --git a/disk/disk_linux.go b/disk/disk_linux.go index caa1e17..a104ffe 100644 --- a/disk/disk_linux.go +++ b/disk/disk_linux.go @@ -9,7 +9,7 @@ import ( "strings" "syscall" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) const ( diff --git a/disk/disk_windows.go b/disk/disk_windows.go index 5ebe2db..384d60b 100644 --- a/disk/disk_windows.go +++ b/disk/disk_windows.go @@ -9,7 +9,7 @@ import ( "github.com/StackExchange/wmi" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) var ( diff --git a/docker/docker_linux.go b/docker/docker_linux.go index 1b6ac9a..308761a 100644 --- a/docker/docker_linux.go +++ b/docker/docker_linux.go @@ -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. diff --git a/docker/docker_notlinux.go b/docker/docker_notlinux.go index b45f96c..88ab928 100644 --- a/docker/docker_notlinux.go +++ b/docker/docker_notlinux.go @@ -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. diff --git a/host/host_darwin.go b/host/host_darwin.go index 069c6fa..3fb9a3a 100644 --- a/host/host_darwin.go +++ b/host/host_darwin.go @@ -14,7 +14,7 @@ import ( "time" "unsafe" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) func HostInfo() (*HostInfoStat, error) { diff --git a/host/host_freebsd.go b/host/host_freebsd.go index 4a151fd..0e7d413 100644 --- a/host/host_freebsd.go +++ b/host/host_freebsd.go @@ -14,7 +14,7 @@ import ( "time" "unsafe" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) const ( diff --git a/host/host_linux.go b/host/host_linux.go index 91b1530..ff669c2 100644 --- a/host/host_linux.go +++ b/host/host_linux.go @@ -16,7 +16,7 @@ import ( "time" "unsafe" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) type LSB struct { diff --git a/host/host_windows.go b/host/host_windows.go index 13890bf..de8f98f 100644 --- a/host/host_windows.go +++ b/host/host_windows.go @@ -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 ( diff --git a/load/load_darwin.go b/load/load_darwin.go index 0d1c7ec..8c86067 100644 --- a/load/load_darwin.go +++ b/load/load_darwin.go @@ -5,7 +5,7 @@ package load import ( "strconv" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) func LoadAvg() (*LoadAvgStat, error) { diff --git a/load/load_freebsd.go b/load/load_freebsd.go index e97c569..4cedfb3 100644 --- a/load/load_freebsd.go +++ b/load/load_freebsd.go @@ -5,7 +5,7 @@ package load import ( "strconv" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) func LoadAvg() (*LoadAvgStat, error) { diff --git a/load/load_linux.go b/load/load_linux.go index 80621c9..fd06370 100644 --- a/load/load_linux.go +++ b/load/load_linux.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) func LoadAvg() (*LoadAvgStat, error) { diff --git a/load/load_windows.go b/load/load_windows.go index 65a6ba7..6482ea3 100644 --- a/load/load_windows.go +++ b/load/load_windows.go @@ -3,7 +3,7 @@ package load import ( - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) func LoadAvg() (*LoadAvgStat, error) { diff --git a/mem/mem_darwin.go b/mem/mem_darwin.go index ba4dbd8..6971171 100644 --- a/mem/mem_darwin.go +++ b/mem/mem_darwin.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) func getPageSize() (uint64, error) { diff --git a/mem/mem_freebsd.go b/mem/mem_freebsd.go index 0cb33ab..f9a38db 100644 --- a/mem/mem_freebsd.go +++ b/mem/mem_freebsd.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" "errors" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) func VirtualMemory() (*VirtualMemoryStat, error) { diff --git a/mem/mem_linux.go b/mem/mem_linux.go index fc92262..9115523 100644 --- a/mem/mem_linux.go +++ b/mem/mem_linux.go @@ -7,7 +7,7 @@ import ( "strings" "syscall" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) func VirtualMemory() (*VirtualMemoryStat, error) { diff --git a/mem/mem_windows.go b/mem/mem_windows.go index 2696da5..ee87a1d 100644 --- a/mem/mem_windows.go +++ b/mem/mem_windows.go @@ -6,7 +6,7 @@ import ( "syscall" "unsafe" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) var ( diff --git a/net/net.go b/net/net.go index 61f9abf..cbe6ff5 100644 --- a/net/net.go +++ b/net/net.go @@ -8,7 +8,7 @@ import ( "strings" "syscall" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) var invoke common.Invoker diff --git a/net/net_darwin.go b/net/net_darwin.go index 7786f7c..8ad13b7 100644 --- a/net/net_darwin.go +++ b/net/net_darwin.go @@ -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 diff --git a/net/net_freebsd.go b/net/net_freebsd.go index d6882f1..e51b86d 100644 --- a/net/net_freebsd.go +++ b/net/net_freebsd.go @@ -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) { diff --git a/net/net_linux.go b/net/net_linux.go index a091ee5..7db6583 100644 --- a/net/net_linux.go +++ b/net/net_linux.go @@ -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 diff --git a/net/net_unix.go b/net/net_unix.go index fe2f1eb..e3f1d9a 100644 --- a/net/net_unix.go +++ b/net/net_unix.go @@ -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. diff --git a/net/net_windows.go b/net/net_windows.go index 33aceb6..d2eda67 100644 --- a/net/net_windows.go +++ b/net/net_windows.go @@ -9,7 +9,7 @@ import ( "syscall" "unsafe" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) var ( diff --git a/process/process.go b/process/process.go index 0526f78..7dd0797 100644 --- a/process/process.go +++ b/process/process.go @@ -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 diff --git a/process/process_darwin.go b/process/process_darwin.go index 01cb66c..4a7a389 100644 --- a/process/process_darwin.go +++ b/process/process_darwin.go @@ -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 diff --git a/process/process_freebsd.go b/process/process_freebsd.go index ecd8920..d91b0ab 100644 --- a/process/process_freebsd.go +++ b/process/process_freebsd.go @@ -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 diff --git a/process/process_linux.go b/process/process_linux.go index f54af9f..6c2d882 100644 --- a/process/process_linux.go +++ b/process/process_linux.go @@ -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 ( diff --git a/process/process_test.go b/process/process_test.go index 153302e..e7e2e15 100644 --- a/process/process_test.go +++ b/process/process_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/shirou/gopsutil/internal/common" + "github.com/yhat/gopsutil/internal/common" ) var mu sync.Mutex diff --git a/process/process_windows.go b/process/process_windows.go index d7a4b1c..32ede90 100644 --- a/process/process_windows.go +++ b/process/process_windows.go @@ -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 (