change: upgrade gwda to 0.4.0

This commit is contained in:
debugtalk
2022-08-15 21:57:03 +08:00
parent 0407c02391
commit df3b56c18c
3 changed files with 4 additions and 4 deletions

View File

@@ -501,7 +501,7 @@ func (w *wdaClient) screenShot() error {
if err := builtin.EnsureFolderExists(screenshotsDir); err != nil {
return errors.Wrap(err, "create screenshots failed")
}
path := filepath.Join(screenshotsDir, fmt.Sprintf("%d", time.Now().UnixMilli())+"."+format)
path := filepath.Join(screenshotsDir, fmt.Sprintf("%d", time.Now().Unix())+"."+format)
file, err := os.Create(path)
if err != nil {
return errors.Wrap(err, "create screenshot image file failed")