blob: 4c0512f8052dc6a26604ffa67601855061de6437 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package stats
import (
"github.com/chrislusf/seaweedfs/weed/util/log"
"github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb"
)
func NewDiskStatus(path string) (disk *volume_server_pb.DiskStatus) {
disk = &volume_server_pb.DiskStatus{Dir: path}
fillInDiskStatus(disk)
if disk.PercentUsed > 95 {
log.Infof("disk status: %v", disk)
}
return
}
|