mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 03:16:53 +00:00
Modular 、Functional enhancement
This commit is contained in:
@@ -17,9 +17,11 @@ var (
|
||||
ServerStatus []map[string]interface{}
|
||||
)
|
||||
|
||||
func init() {
|
||||
ServerStatus = make([]map[string]interface{}, 0, 1500)
|
||||
go getSeverStatus()
|
||||
func StartSystemInfo() {
|
||||
if b, err := beego.AppConfig.Bool("system_info_display"); err == nil && b {
|
||||
ServerStatus = make([]map[string]interface{}, 0, 1500)
|
||||
go getSeverStatus()
|
||||
}
|
||||
}
|
||||
|
||||
func InitAllowPort() {
|
||||
@@ -86,5 +88,3 @@ func getSeverStatus() {
|
||||
ServerStatus = append(ServerStatus, m)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user