Skip to content

Commit

Permalink
🐛 Improve importing .sy.zip #12825
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Oct 18, 2024
1 parent 6c4a72b commit ac4b052
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kernel/filesys/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"path/filepath"
"strings"
"sync"
"time"

"github.com/88250/lute"
"github.com/88250/lute/parse"
Expand Down Expand Up @@ -89,7 +88,7 @@ func batchLoadTrees(boxIDs, paths []string, luteEngine *lute.Lute) (ret []*parse
lock := sync.Mutex{}
loaded := map[string]bool{}

start := time.Now()
//start := time.Now()
p, _ := ants.NewPoolWithFunc(8, func(arg interface{}) {
defer waitGroup.Done()

Expand All @@ -114,7 +113,7 @@ func batchLoadTrees(boxIDs, paths []string, luteEngine *lute.Lute) (ret []*parse
}
waitGroup.Wait()
p.Release()
logging.LogInfof("batch load trees [%d] cost [%s]", len(paths), time.Since(start))
//logging.LogInfof("batch load trees [%d] cost [%s]", len(paths), time.Since(start))
return
}

Expand Down
1 change: 1 addition & 0 deletions kernel/sql/av.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ func RenderTemplateCol(ial map[string]string, rowValues []*av.KeyValues, tplCont
dataModel["created"] = created
} else {
errMsg := parseErr.Error()
//logging.LogWarnf("parse created [%s] failed: %s", createdStr, errMsg)
if strings.Contains(errMsg, "minute out of range") {
// parsing time "20240709158553": minute out of range
// 将分秒部分置为 0000
Expand Down

0 comments on commit ac4b052

Please sign in to comment.