[agent-go] [status] basically accomplished the status module

This commit is contained in:
zeaslity
2023-04-14 10:04:58 +08:00
parent 9909593545
commit e50ba14c13
6 changed files with 105 additions and 10 deletions

View 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)
}