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> {
162
162
} else {
163
163
// Backoff from calling the server again, to reduce load when we're spinning until
164
164
// 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 ) ) ) ;
166
166
// We're done if no more crates left.
167
167
return Ok ( ( ) ) ;
168
168
} ;
Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ impl DiskUsage {
13
13
let available = stat. blocks_available ( ) ;
14
14
let total = stat. blocks ( ) ;
15
15
info ! ( "{available} / {total} blocks used in {path:?}" ) ;
16
+
16
17
Ok ( Self {
17
- usage : available as f32 / total as f32 ,
18
+ usage : 1.0 - available as f32 / total as f32 ,
18
19
} )
19
20
}
20
21
#[ cfg( not( unix) ) ]
You can’t perform that action at this time.
0 commit comments