pull/4/head
WAKAYAMA shirou 11 years ago
parent ac570a47a1
commit 4bf256a08a

@ -10,7 +10,6 @@ import (
"bufio" "bufio"
"os" "os"
"strings" "strings"
) )
// Read contents from file and split by new line. // Read contents from file and split by new line.
@ -33,7 +32,6 @@ func ReadLines(filename string) ([]string, error) {
return ret, err return ret, err
} }
func byteToString(orig []byte) string { func byteToString(orig []byte) string {
n := -1 n := -1
for i, b := range orig { for i, b := range orig {

@ -9,6 +9,5 @@ import (
func Cpu_times() ([]CPU_TimesStat, error) { func Cpu_times() ([]CPU_TimesStat, error) {
ret := make([]CPU_TimesStat, 0) ret := make([]CPU_TimesStat, 0)
fmt.Println("FreeBSD")
return ret, nil return ret, nil
} }

@ -3,8 +3,8 @@
package gopsutil package gopsutil
import ( import (
"encoding/binary"
"bytes" "bytes"
"encoding/binary"
"io/ioutil" "io/ioutil"
"os" "os"
"syscall" "syscall"

@ -24,7 +24,6 @@ func TestBoot_time(t *testing.T) {
} }
} }
func TestUsers(t *testing.T) { func TestUsers(t *testing.T) {
v, err := Users() v, err := Users()
if err != nil { if err != nil {

Loading…
Cancel
Save