aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLazyDBA247-Anyvision <yonin@anyvision.co>2020-02-23 23:24:24 +0200
committerLazyDBA247-Anyvision <yonin@anyvision.co>2020-02-23 23:24:24 +0200
commitec8619176a4a3e23a2e273d397785d424859d51b (patch)
tree8fd713bdb1345196e119d7a3bd4a80ce94c953f0
parent6ea394b802f1bb52a07a91614e51185aea2281dd (diff)
downloadseaweedfs-ec8619176a4a3e23a2e273d397785d424859d51b.tar.xz
seaweedfs-ec8619176a4a3e23a2e273d397785d424859d51b.zip
volume server protobuf: add precentFree & percentUsage to the DiskStatus
-rw-r--r--weed/pb/volume_server_pb/volume_server.pb.go24
1 files changed, 20 insertions, 4 deletions
diff --git a/weed/pb/volume_server_pb/volume_server.pb.go b/weed/pb/volume_server_pb/volume_server.pb.go
index d14e98693..3206be5f1 100644
--- a/weed/pb/volume_server_pb/volume_server.pb.go
+++ b/weed/pb/volume_server_pb/volume_server.pb.go
@@ -1505,10 +1505,12 @@ func (m *ReadVolumeFileStatusResponse) GetCollection() string {
}
type DiskStatus struct {
- Dir string `protobuf:"bytes,1,opt,name=dir" json:"dir,omitempty"`
- All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
- Used uint64 `protobuf:"varint,3,opt,name=used" json:"used,omitempty"`
- Free uint64 `protobuf:"varint,4,opt,name=free" json:"free,omitempty"`
+ Dir string `protobuf:"bytes,1,opt,name=dir" json:"dir,omitempty"`
+ All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`
+ Used uint64 `protobuf:"varint,3,opt,name=used" json:"used,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{} }
@@ -1544,6 +1546,20 @@ func (m *DiskStatus) GetFree() uint64 {
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 {
Goroutines int32 `protobuf:"varint,1,opt,name=goroutines" json:"goroutines,omitempty"`
All uint64 `protobuf:"varint,2,opt,name=all" json:"all,omitempty"`