chore: add goroutine num display

This commit is contained in:
engigu
2025-12-27 13:54:20 +08:00
parent e22d285add
commit ec882de420
3 changed files with 7 additions and 0 deletions
@@ -2,6 +2,7 @@ package controllers
import (
"path/filepath"
"runtime"
"strconv"
"baihu/internal/constant"
@@ -184,6 +185,7 @@ func (sc *SettingsController) GetAbout(c *gin.Context) {
"version": constant.Version,
"build_time": constant.BuildTime,
"mem_usage": memUsage,
"goroutines": runtime.NumGoroutine(),
"uptime": uptime,
"task_count": taskCount,
"log_count": logCount,