From 6c38baf8cdd5cde2418804b0d016a39d10925c6f Mon Sep 17 00:00:00 2001 From: leichong2019 <48741337+leichong2019@users.noreply.github.com> Date: Mon, 11 Apr 2022 15:09:20 +0800 Subject: [PATCH] Update capture_screenshot file for s frequency Update capture_screenshot file for s frequency. If type == 's', set frequency to sec, orelse will capture screen per second. --- projects/capture_screenshot/screenshot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/capture_screenshot/screenshot.py b/projects/capture_screenshot/screenshot.py index 9ed62cfd..9fb486e5 100644 --- a/projects/capture_screenshot/screenshot.py +++ b/projects/capture_screenshot/screenshot.py @@ -18,6 +18,8 @@ sec = 60 * 60 / args.frequency elif args.type == 'm': sec = 60 / args.frequency +elif args.type == 's': + sec = args.frequency if sec < 1.: sec = 1.