chore: change pid

Change to cpu.PID in api/status
This commit is contained in:
Medzik 2021-08-20 10:41:52 +00:00
parent 3570ee0da3
commit 44eeaa6bf7
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@ package api
import (
"net/http"
"os"
"runtime"
"github.com/MedzikUser/go-utils/common"
@ -35,7 +34,7 @@ func Status(c *gin.Context) {
c.JSON(http.StatusOK, json{
"ping": ping,
"sys": json{
"pid": os.Getpid(),
"pid": cpu.PID,
"os": runtime.GOOS,
"mem": json{
"alloc": mem.Alloc,