mirror of https://github.com/MedzikUser/go-pingbot
parent
3570ee0da3
commit
44eeaa6bf7
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue