mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-14 21:00:55 +08:00
1. adding statistics reporting
2. refactor version to util package
This commit is contained in:
17
go/stats/disk_windows.go
Normal file
17
go/stats/disk_windows.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// +build windows
|
||||
|
||||
package stats
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
type DiskStatus struct {
|
||||
All uint64 `json:"all"`
|
||||
Used uint64 `json:"used"`
|
||||
Free uint64 `json:"free"`
|
||||
}
|
||||
|
||||
func DiskUsage(path string) (disk *DiskStatus) {
|
||||
return
|
||||
}
|
Reference in New Issue
Block a user