mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-06-28 06:46:12 +00:00
♻️ Replace time.Now().Sub(start) with time.Since(start) (#17401)
This commit is contained in:
@@ -194,7 +194,7 @@ func FlushQueue() {
|
||||
debug.FreeOSMemory()
|
||||
}
|
||||
|
||||
elapsed := time.Now().Sub(start).Milliseconds()
|
||||
elapsed := time.Since(start).Milliseconds()
|
||||
if 7000 < elapsed {
|
||||
logging.LogInfof("database op tx [%dms]", elapsed)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user