Skip to content

Commit 451e818

Browse files
Merge pull request rust-lang#804 from Mark-Simulacrum/next
Increase backoff
2 parents 4701875 + 6af6804 commit 451e818

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/runner/worker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl<'a> Worker<'a> {
162162
} else {
163163
// Backoff from calling the server again, to reduce load when we're spinning until
164164
// the next experiment is ready.
165-
std::thread::sleep(Duration::from_secs(rand::random_range(3..10)));
165+
std::thread::sleep(Duration::from_secs(rand::random_range(60..120)));
166166
// We're done if no more crates left.
167167
return Ok(());
168168
};

src/utils/disk_usage.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ impl DiskUsage {
1313
let available = stat.blocks_available();
1414
let total = stat.blocks();
1515
info!("{available} / {total} blocks used in {path:?}");
16+
1617
Ok(Self {
17-
usage: available as f32 / total as f32,
18+
usage: 1.0 - available as f32 / total as f32,
1819
})
1920
}
2021
#[cfg(not(unix))]

0 commit comments

Comments
 (0)