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