去除调试代码

This commit is contained in:
george
2018-08-13 17:17:53 +08:00
parent 2728edf7b0
commit 59f09f362a
3 changed files with 0 additions and 12 deletions

View File

@@ -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

View File

@@ -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)),

View File

@@ -8,7 +8,6 @@
package main package main
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/models" "github.com/george518/PPGo_Job/models"