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 {
197197
198198 fn update ( & self , completed : u64 , input : impl fmt:: Debug ) {
199199 // Infrequently update the progress bar.
200- if completed % 20_000 == 0 {
200+ if completed. is_multiple_of ( 20_000 ) {
201201 self . pb . set_position ( completed) ;
202202 }
203203
204- if completed % 500_000 == 0 {
204+ if completed. is_multiple_of ( 500_000 ) {
205205 self . pb . set_message ( format ! ( "input: {input:<24?}" ) ) ;
206206 }
207207
208- if !self . is_tty && completed % 5_000_000 == 0 {
208+ if !self . is_tty && completed. is_multiple_of ( 5_000_000 ) {
209209 let len = self . pb . length ( ) . unwrap_or_default ( ) ;
210210 eprintln ! (
211211 "[{elapsed:3?}s {percent:3.0}%] {name} \
You can’t perform that action at this time.
0 commit comments