mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-26 13:48:59 +08:00
revert imports
This commit is contained in:
parent
3cc34ebf18
commit
d47801b68b
@ -61,7 +61,7 @@ Note: gopsutil v2 breaks compatibility. If you want to stay with compatibility,
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/mem"
|
||||
"github.com/shirou/gopsutil/mem"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
// TimesStat contains the amounts of time the CPU has spent performing different
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
package cpu
|
||||
|
||||
import "github.com/marcospedreiro/gopsutil/internal/common"
|
||||
import "github.com/shirou/gopsutil/internal/common"
|
||||
|
||||
func perCPUTimes() ([]TimesStat, error) {
|
||||
return []TimesStat{}, common.ErrNotImplementedError
|
||||
|
@ -5,7 +5,7 @@ package cpu
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func Times(percpu bool) ([]TimesStat, error) {
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"strings"
|
||||
"unsafe"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func TestParseDmesgBoot(t *testing.T) {
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
var CPUTick = float64(100)
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
var ClocksPerSec = float64(128)
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"unsafe"
|
||||
|
||||
"github.com/StackExchange/wmi"
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
|
@ -3,7 +3,7 @@ package disk
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
var invoke common.Invoker = common.Invoke{}
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"path"
|
||||
"unsafe"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
|
@ -31,7 +31,7 @@ import (
|
||||
"strings"
|
||||
"unsafe"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func IOCounters(names ...string) (map[string]IOCountersStat, error) {
|
||||
|
@ -6,7 +6,7 @@ package disk
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func IOCounters(names ...string) (map[string]IOCountersStat, error) {
|
||||
|
@ -5,7 +5,7 @@ package disk
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func IOCounters(names ...string) (map[string]IOCountersStat, error) {
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func Partitions(all bool) ([]PartitionStat, error) {
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"path"
|
||||
"unsafe"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
|
@ -51,7 +51,7 @@ func UsageWithContext(ctx context.Context, path string) (*UsageStat, error) {
|
||||
ret.UsedPercent = 0
|
||||
} else {
|
||||
// We don't use ret.Total to calculate percent.
|
||||
// see https://github.com/marcospedreiro/gopsutil/issues/562
|
||||
// see https://github.com/shirou/gopsutil/issues/562
|
||||
ret.UsedPercent = (float64(ret.Used) / float64(ret.Used+ret.Free)) * 100.0
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"context"
|
||||
"unsafe"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/cpu"
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
var ErrDockerNotAvailable = errors.New("docker not available")
|
||||
|
@ -11,8 +11,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
cpu "github.com/marcospedreiro/gopsutil/cpu"
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
cpu "github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
// GetDockerStat returns a list of Docker basic stats.
|
||||
|
@ -5,8 +5,8 @@ package docker
|
||||
import (
|
||||
"context"
|
||||
|
||||
cpu "github.com/marcospedreiro/gopsutil/cpu"
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
cpu "github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
// GetDockerStat returns a list of Docker basic stats.
|
||||
|
@ -3,7 +3,7 @@ package host
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
var invoke common.Invoker = common.Invoke{}
|
||||
|
@ -16,8 +16,8 @@ import (
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/marcospedreiro/gopsutil/process"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/process"
|
||||
)
|
||||
|
||||
// from utmpx.h
|
||||
|
@ -5,7 +5,7 @@ package host
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func Info() (*InfoStat, error) {
|
||||
|
@ -15,8 +15,8 @@ import (
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/marcospedreiro/gopsutil/process"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/process"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
|
@ -18,7 +18,7 @@ import (
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
type LSB struct {
|
||||
|
@ -15,8 +15,8 @@ import (
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/marcospedreiro/gopsutil/process"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/process"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func Info() (*InfoStat, error) {
|
||||
|
@ -15,8 +15,8 @@ import (
|
||||
"unsafe"
|
||||
|
||||
"github.com/StackExchange/wmi"
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
process "github.com/marcospedreiro/gopsutil/process"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
process "github.com/shirou/gopsutil/process"
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
@ -102,7 +102,7 @@ func InfoWithContext(ctx context.Context) (*InfoStat, error) {
|
||||
}
|
||||
|
||||
func getMachineGuid() (string, error) {
|
||||
// there has been reports of issues on 32bit using golang.org/x/sys/windows/registry, see https://github.com/marcospedreiro/gopsutil/pull/312#issuecomment-277422612
|
||||
// there has been reports of issues on 32bit using golang.org/x/sys/windows/registry, see https://github.com/shirou/gopsutil/pull/312#issuecomment-277422612
|
||||
// for rationale of using windows.RegOpenKeyEx/RegQueryValueEx instead of registry.OpenKey/GetStringValue
|
||||
var h windows.Handle
|
||||
err := windows.RegOpenKeyEx(windows.HKEY_LOCAL_MACHINE, windows.StringToUTF16Ptr(`SOFTWARE\Microsoft\Cryptography`), 0, windows.KEY_READ|windows.KEY_WOW64_64KEY, &h)
|
||||
|
@ -3,7 +3,7 @@ package load
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
var invoke common.Invoker = common.Invoke{}
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func Avg() (*AvgStat, error) {
|
||||
|
@ -5,7 +5,7 @@ package load
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func Avg() (*AvgStat, error) {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func Avg() (*AvgStat, error) {
|
||||
|
@ -5,7 +5,7 @@ package load
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func Avg() (*AvgStat, error) {
|
||||
|
@ -3,7 +3,7 @@ package mem
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
var invoke common.Invoker = common.Invoke{}
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
|
@ -5,7 +5,7 @@ package mem
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func VirtualMemory() (*VirtualMemoryStat, error) {
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"fmt"
|
||||
"os/exec"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func GetPageSize() (uint64, error) {
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
// VirtualMemory for Solaris is a minimal implementation which only returns
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"context"
|
||||
"unsafe"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
var invoke common.Invoker = common.Invoke{}
|
||||
|
@ -5,7 +5,7 @@ package net
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func IOCounters(pernic bool) ([]IOCountersStat, error) {
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func IOCounters(pernic bool) ([]IOCountersStat, error) {
|
||||
|
@ -15,7 +15,7 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
// NetIOCounters returnes network I/O statistics for every network
|
||||
@ -661,7 +661,7 @@ func processInet(file string, kind netConnectionKindType, inodes map[string][]in
|
||||
// Read the contents of the /proc file with a single read sys call.
|
||||
// This minimizes duplicates in the returned connections
|
||||
// For more info:
|
||||
// https://github.com/marcospedreiro/gopsutil/pull/361
|
||||
// https://github.com/shirou/gopsutil/pull/361
|
||||
contents, err := ioutil.ReadFile(file)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -722,7 +722,7 @@ func processUnix(file string, kind netConnectionKindType, inodes map[string][]in
|
||||
// Read the contents of the /proc file with a single read sys call.
|
||||
// This minimizes duplicates in the returned connections
|
||||
// For more info:
|
||||
// https://github.com/marcospedreiro/gopsutil/pull/361
|
||||
// https://github.com/shirou/gopsutil/pull/361
|
||||
contents, err := ioutil.ReadFile(file)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"syscall"
|
||||
"testing"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
var portMatch = regexp.MustCompile(`(.*)\.(\d+)$`)
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
func TestAddrString(t *testing.T) {
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"context"
|
||||
"strings"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
)
|
||||
|
||||
// Return a list of network connections opened.
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
|
@ -7,9 +7,9 @@ import (
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/cpu"
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/marcospedreiro/gopsutil/mem"
|
||||
"github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/mem"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -13,9 +13,9 @@ import (
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/cpu"
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/marcospedreiro/gopsutil/net"
|
||||
"github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/net"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
|
@ -6,9 +6,9 @@ import (
|
||||
"context"
|
||||
"syscall"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/cpu"
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/marcospedreiro/gopsutil/net"
|
||||
"github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/net"
|
||||
)
|
||||
|
||||
type MemoryMapsStat struct {
|
||||
|
@ -8,9 +8,9 @@ import (
|
||||
"encoding/binary"
|
||||
"strings"
|
||||
|
||||
cpu "github.com/marcospedreiro/gopsutil/cpu"
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
net "github.com/marcospedreiro/gopsutil/net"
|
||||
cpu "github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
net "github.com/shirou/gopsutil/net"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
|
@ -15,10 +15,10 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/cpu"
|
||||
"github.com/marcospedreiro/gopsutil/host"
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/marcospedreiro/gopsutil/net"
|
||||
"github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/host"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/net"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
|
@ -10,10 +10,10 @@ import (
|
||||
"strings"
|
||||
"unsafe"
|
||||
|
||||
cpu "github.com/marcospedreiro/gopsutil/cpu"
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
mem "github.com/marcospedreiro/gopsutil/mem"
|
||||
net "github.com/marcospedreiro/gopsutil/net"
|
||||
cpu "github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
mem "github.com/shirou/gopsutil/mem"
|
||||
net "github.com/shirou/gopsutil/net"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
@ -12,9 +12,9 @@ import (
|
||||
"unsafe"
|
||||
|
||||
"github.com/StackExchange/wmi"
|
||||
cpu "github.com/marcospedreiro/gopsutil/cpu"
|
||||
"github.com/marcospedreiro/gopsutil/internal/common"
|
||||
net "github.com/marcospedreiro/gopsutil/net"
|
||||
cpu "github.com/shirou/gopsutil/cpu"
|
||||
"github.com/shirou/gopsutil/internal/common"
|
||||
net "github.com/shirou/gopsutil/net"
|
||||
"github.com/shirou/w32"
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user