From c6d9d833d00d42a2dc83d0e7d0225b171edefbb7 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Fri, 12 Jan 2024 20:52:12 +0300 Subject: [PATCH] b/c...py: use term `specified` for length --- bytebeat_compiler.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bytebeat_compiler.py b/bytebeat_compiler.py index 15271e1..b3652fb 100644 --- a/bytebeat_compiler.py +++ b/bytebeat_compiler.py @@ -168,18 +168,18 @@ if __name__ == "__main__": while True: no_seconds = args.seconds is None or args.seconds == 0 no_samples = args.samples is None or args.samples == 0 - seconds_exist = not no_seconds - samples_exist = not no_samples + seconds_specified = not no_seconds + samples_specified = not no_samples - if seconds_exist and args.seconds < 0: + if seconds_specified and args.seconds < 0: print("CLI: Count of seconds can't be less than zero.") raise SystemExit - if no_seconds and samples_exist: + if no_seconds and samples_specified: samples = args.samples - elif seconds_exist and samples_exist: + elif seconds_specified and samples_specified: samples = args.seconds * final_sample_rate + args.samples - elif seconds_exist and no_samples: + elif seconds_specified and no_samples: samples = args.seconds * final_sample_rate elif no_seconds and no_samples: args.seconds = 30 # default