move DiskStatus and MemStatus to protobuf

This commit is contained in:
Chris Lu
2018-10-15 22:25:28 -07:00
parent eec951cad2
commit 46eb77f9bb
10 changed files with 242 additions and 86 deletions

View File

@@ -4,9 +4,11 @@ package stats
import (
"syscall"
"github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb"
)
func (mem *MemStatus) fillInStatus() {
func fillInMemStatus(mem *volume_server_pb.MemStatus) {
//system memory usage
sysInfo := new(syscall.Sysinfo_t)
err := syscall.Sysinfo(sysInfo)