Commit 0af91ba3 authored by WAKAYAMA shirou's avatar WAKAYAMA shirou

[disk,process]freebsd: binary.go moved to internal.

parent 614df95d
......@@ -157,7 +157,7 @@ func parseDevstat(buf []byte) (Devstat, error) {
var ds Devstat
br := bytes.NewReader(buf)
// err := binary.Read(br, binary.LittleEndian, &ds)
err := Read(br, binary.LittleEndian, &ds)
err := common.Read(br, binary.LittleEndian, &ds)
if err != nil {
return ds, err
}
......
......@@ -19,7 +19,7 @@
// high-performance serialization, especially for large data structures,
// should look at more advanced solutions such as the encoding/gob
// package or protocol buffers.
package disk
package common
import (
"errors"
......
This diff is collapsed.
......@@ -185,7 +185,7 @@ func (p *Process) MemoryInfo() (*MemoryInfoStat, error) {
if err != nil {
return nil, err
}
pageSize := binary.LittleEndian.Uint16([]byte(v))
pageSize := common.LittleEndian.Uint16([]byte(v))
return &MemoryInfoStat{
RSS: uint64(k.KiRssize) * uint64(pageSize),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment