去除调试代码
This commit is contained in:
@@ -8,7 +8,6 @@
|
|||||||
package controllers
|
package controllers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
"github.com/george518/PPGo_Job/jobs"
|
"github.com/george518/PPGo_Job/jobs"
|
||||||
"github.com/george518/PPGo_Job/libs"
|
"github.com/george518/PPGo_Job/libs"
|
||||||
@@ -115,9 +114,6 @@ func (self *HomeController) Start() {
|
|||||||
self.Data["cpuNum"] = runtime.NumCPU()
|
self.Data["cpuNum"] = runtime.NumCPU()
|
||||||
|
|
||||||
//系统运行信息
|
//系统运行信息
|
||||||
|
|
||||||
fmt.Println(models.StartTime)
|
|
||||||
|
|
||||||
info := libs.SystemInfo(models.StartTime)
|
info := libs.SystemInfo(models.StartTime)
|
||||||
self.Data["sysInfo"] = info
|
self.Data["sysInfo"] = info
|
||||||
|
|
||||||
|
|||||||
@@ -30,13 +30,6 @@ func SystemInfo(startTime int64) map[string]interface{} {
|
|||||||
} else {
|
} else {
|
||||||
afterLastGC = "0"
|
afterLastGC = "0"
|
||||||
}
|
}
|
||||||
fmt.Println()
|
|
||||||
fmt.Println()
|
|
||||||
fmt.Println()
|
|
||||||
fmt.Println()
|
|
||||||
//fmt.Println(startTime)
|
|
||||||
//fmt.Println(now)
|
|
||||||
//fmt.Println(costTime)
|
|
||||||
|
|
||||||
return map[string]interface{}{
|
return map[string]interface{}{
|
||||||
"服务运行时间": fmt.Sprintf("%d天%d小时%d分%d秒", costTime/(3600*24), costTime%(3600*24)/3600, costTime%3600/60, costTime%(60)),
|
"服务运行时间": fmt.Sprintf("%d天%d小时%d分%d秒", costTime/(3600*24), costTime%(3600*24)/3600, costTime%3600/60, costTime%(60)),
|
||||||
|
|||||||
Reference in New Issue
Block a user