We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f301811 commit c4bb16bCopy full SHA for c4bb16b
1 file changed
cli/src/walk.rs
@@ -475,8 +475,8 @@ impl<'a> ParWalker<'a> {
475
);
476
let t_active = start_time.elapsed();
477
478
- if let Some(limit) = cpu_limit {
479
- if limit < 100 {
+ if let Some(limit) = cpu_limit
+ && limit < 100 {
480
// Calculate the required sleep duration to limit
481
// CPU usage to the target percentage.
482
//
@@ -495,7 +495,6 @@ impl<'a> ParWalker<'a> {
495
thread::sleep(t_sleep);
496
}
497
498
- }
499
500
if let Err(err) = res
501
&& error(err, &msg_send).is_err()
0 commit comments