|
|
@@ -40,6 +40,7 @@ func getStatus(w http.ResponseWriter, r *http.Request) {
|
|
|
status["goOS"] = runtime.GOOS
|
|
|
status["goArch"] = runtime.GOARCH
|
|
|
status["goMaxProcs"] = runtime.GOMAXPROCS(-1)
|
|
|
+ status["goNumRoutine"] = runtime.NumGoroutine()
|
|
|
status["kbps10s1m5m15m30m60m"] = []int64{
|
|
|
rc.rate(10/10) * 8 / 1000,
|
|
|
rc.rate(60/10) * 8 / 1000,
|