Skip to content

Commit 2febde3

Browse files
committed
chore: increase self-update check
from 10% to 50% of the time when no qsv parameters are specified for qsv and qsvlite
1 parent f96859f commit 2febde3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,9 @@ fn main() -> QsvExitCode {
262262
following {num_commands} commands:\n{enabled_commands}\n\n{SPONSOR_MESSAGE}"
263263
);
264264

265-
// if no command is specified, auto-check for updates 10% of the time
265+
// if no command is specified, auto-check for updates 50% of the time
266266
let mut rng = rand::thread_rng(); //DevSkim: ignore DS148264
267-
if rng.gen_range(0..10) == 0 {
267+
if rng.gen_range(0..2) == 0 {
268268
_ = util::qsv_check_for_update(true, false);
269269
}
270270
util::log_end(qsv_args, now);

src/mainlite.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ fn main() -> QsvExitCode {
151151
following 49 commands:\n{COMMAND_LIST}\n\n{SPONSOR_MESSAGE}",
152152
);
153153

154-
// if no command is specified, auto-check for updates 10% of the time
154+
// if no command is specified, auto-check for updates 50% of the time
155155
let mut rng = rand::thread_rng(); //DevSkim: ignore DS148264
156-
if rng.gen_range(0..10) == 0 {
156+
if rng.gen_range(0..2) == 0 {
157157
_ = util::qsv_check_for_update(true, false);
158158
}
159159
util::log_end(qsv_args, now);

0 commit comments

Comments
 (0)