[agent-go] [status] basically accomplished the status module
This commit is contained in:
14
agent-go/status/Disk_test.go
Normal file
14
agent-go/status/Disk_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package status
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGetDiskStatus(t *testing.T) {
|
||||
|
||||
ds := GetDiskStatus()
|
||||
fmt.Printf("Total: %v, Used: %v\n", ds.Total, ds.Used)
|
||||
fmt.Printf("Logical Disks: %v\n", ds.LogicalDisk)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user