mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-20 23:57:56 +08:00
volume server protobuf: add precentFree & percentUsage to the DiskStatus
This commit is contained in:
@@ -1509,6 +1509,8 @@ type DiskStatus struct {
|
|||||||
All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
|
All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
|
||||||
Used uint64 `protobuf:"varint,3,opt,name=used" json:"used,omitempty"`
|
Used uint64 `protobuf:"varint,3,opt,name=used" json:"used,omitempty"`
|
||||||
Free uint64 `protobuf:"varint,4,opt,name=free" json:"free,omitempty"`
|
Free uint64 `protobuf:"varint,4,opt,name=free" json:"free,omitempty"`
|
||||||
|
PercentFree float32 `protobuf:"fixed32,5,opt,name=percentFree" json:"percentFree,omitempty"`
|
||||||
|
PercentUsed float32 `protobuf:"fixed32,6,opt,name=percentUsed" json:"percentUsed,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *DiskStatus) Reset() { *m = DiskStatus{} }
|
func (m *DiskStatus) Reset() { *m = DiskStatus{} }
|
||||||
@@ -1544,6 +1546,20 @@ func (m *DiskStatus) GetFree() uint64 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *DiskStatus) GetPercentFree() float32 {
|
||||||
|
if m != nil {
|
||||||
|
return m.PercentFree
|
||||||
|
}
|
||||||
|
return float32(0.0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *DiskStatus) GetPercentUsed() float32 {
|
||||||
|
if m != nil {
|
||||||
|
return m.PercentUsed
|
||||||
|
}
|
||||||
|
return float32(0.0)
|
||||||
|
}
|
||||||
|
|
||||||
type MemStatus struct {
|
type MemStatus struct {
|
||||||
Goroutines int32 `protobuf:"varint,1,opt,name=goroutines" json:"goroutines,omitempty"`
|
Goroutines int32 `protobuf:"varint,1,opt,name=goroutines" json:"goroutines,omitempty"`
|
||||||
All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
|
All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
|
||||||
|
Reference in New Issue
Block a user