Commit 41c691ca authored by szh's avatar szh

add cost

parent ed40b196
......@@ -201,6 +201,10 @@ func deleteBackup() error {
}
func MakeSureBtyIsNotRun() bool {
s := time.Now()
defer func() {
tlog.Info("MakeSureBtyIsNotRun","cost",time.Since(s))
}()
for {
info := getProcessInfo(setting.BityuanSetting.Name)
if info == "" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment