File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
library/compiler-builtins/libm-test/tests/z_extensive Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -197,15 +197,15 @@ impl Progress {
197
197
198
198
fn update ( & self , completed : u64 , input : impl fmt:: Debug ) {
199
199
// Infrequently update the progress bar.
200
- if completed % 20_000 == 0 {
200
+ if completed. is_multiple_of ( 20_000 ) {
201
201
self . pb . set_position ( completed) ;
202
202
}
203
203
204
- if completed % 500_000 == 0 {
204
+ if completed. is_multiple_of ( 500_000 ) {
205
205
self . pb . set_message ( format ! ( "input: {input:<24?}" ) ) ;
206
206
}
207
207
208
- if !self . is_tty && completed % 5_000_000 == 0 {
208
+ if !self . is_tty && completed. is_multiple_of ( 5_000_000 ) {
209
209
let len = self . pb . length ( ) . unwrap_or_default ( ) ;
210
210
eprintln ! (
211
211
"[{elapsed:3?}s {percent:3.0}%] {name} \
You can’t perform that action at this time.
0 commit comments