Add files via upload

This commit is contained in:
quydang 2023-09-25 08:43:25 +07:00 committed by GitHub
parent 9989df9595
commit e6743ca7b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 12 deletions

View file

@ -201,4 +201,3 @@ Reference syntax:
- CentOS 7+
- Fedora 30+
- Arch Linux
- Manjaro

1
go.mod
View file

@ -14,7 +14,6 @@ require (
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
github.com/pelletier/go-toml/v2 v2.1.0
github.com/robfig/cron/v3 v3.0.1
github.com/shirou/gopsutil/v3 v3.23.8
github.com/xtls/xray-core v1.8.4
go.uber.org/atomic v1.11.0
golang.org/x/text v0.13.0

View file

@ -17,8 +17,6 @@ import (
"x-ui/web/service"
"github.com/op/go-logging"
"github.com/shirou/gopsutil/cpu"
"github.com/shirou/gopsutil/disk"
)
func runWebServer() {
@ -263,13 +261,6 @@ 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

View file

@ -773,7 +773,7 @@ show_usage() {
show_menu() {
echo -e "
--------------------------------------------------------------------------------
${green}X-UI MANAGEMENT SCRIPT ${plain}
${green}X-UI ENGLISH PANEL MANAGEMENT SCRIPT ${plain}
--------------------------------------------------------------------------------
${green}0.${plain} Exit Script
--------------------------------------------------------------------------------