File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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 } ;
Original file line number Diff line number Diff 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) ) ]
You can’t perform that action at this time.
0 commit comments