mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-08-31 23:36:18 +00:00
Update main.go
This commit is contained in:
parent
e18a8d1e0c
commit
af00ae9470
1 changed files with 7 additions and 0 deletions
7
main.go
7
main.go
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue