Update main.go

This commit is contained in:
quydang 2023-09-25 08:02:48 +07:00 committed by GitHub
parent e18a8d1e0c
commit af00ae9470
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -263,6 +263,13 @@ func removeSecret() {
}
func main() {
// Get CPU info
cpuInfo, _ := cpu.Info()
fmt.Printf("CPU Info: %v\n", cpuInfo[0])
// Get disk usage
diskUsage, _ := disk.Usage("/")
fmt.Printf("Disk Usage: %v\n", diskUsage)
if len(os.Args) < 2 {
runWebServer()
return