Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/runner/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl<'a> Worker<'a> {
} else {
// Backoff from calling the server again, to reduce load when we're spinning until
// the next experiment is ready.
std::thread::sleep(Duration::from_secs(rand::random_range(3..10)));
std::thread::sleep(Duration::from_secs(rand::random_range(60..120)));
// We're done if no more crates left.
return Ok(());
};
Expand Down
3 changes: 2 additions & 1 deletion src/utils/disk_usage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ impl DiskUsage {
let available = stat.blocks_available();
let total = stat.blocks();
info!("{available} / {total} blocks used in {path:?}");

Ok(Self {
usage: available as f32 / total as f32,
usage: 1.0 - available as f32 / total as f32,
})
}
#[cfg(not(unix))]
Expand Down