mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-05-07 14:32:42 +08:00
17 lines
185 B
Go
17 lines
185 B
Go
package system
|
|
|
|
import (
|
|
"net/http"
|
|
"os"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func GetProcessStats(c *gin.Context) {
|
|
pid := os.Getpid()
|
|
|
|
c.JSON(http.StatusOK, gin.H{
|
|
"pid": pid,
|
|
})
|
|
}
|