support non-blocking screenshot action and screenshot disable_retry

This commit is contained in:
buyuxiang
2023-05-31 10:23:49 +08:00
parent dd7d0ee708
commit 8bd4149739
10 changed files with 152 additions and 76 deletions
+7
View File
@@ -450,3 +450,10 @@ func GenNameWithTimestamp(tmpl string) string {
}
return fmt.Sprintf(tmpl, time.Now().Unix())
}
func GenNameWithTimestampMS(tmpl string) string {
if !strings.Contains(tmpl, "%d") {
tmpl = tmpl + "_%d"
}
return fmt.Sprintf(tmpl, time.Now().UnixNano()/1e6)
}