File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -252,19 +252,12 @@ pub fn test_download(
252252 payload_size_bytes : usize ,
253253 output_format : OutputFormat ,
254254) -> f64 {
255- let timestamp = std:: time:: SystemTime :: now ( )
256- . duration_since ( std:: time:: UNIX_EPOCH )
257- . unwrap ( )
258- . as_nanos ( ) ;
259- let url = & format ! (
260- "{BASE_URL}/{DOWNLOAD_URL}{payload_size_bytes}&t={}" ,
261- timestamp
262- ) ;
255+ let url = & format ! ( "{BASE_URL}/{DOWNLOAD_URL}{payload_size_bytes}" ) ;
263256 let req_builder = client. get ( url) ;
264257 let ( status_code, mbits, duration) = {
258+ let start = Instant :: now ( ) ;
265259 let response = req_builder. send ( ) . expect ( "failed to get response" ) ;
266260 let status_code = response. status ( ) ;
267- let start = Instant :: now ( ) ;
268261 let _res_bytes = response. bytes ( ) ;
269262 let duration = start. elapsed ( ) ;
270263 let mbits = ( payload_size_bytes as f64 * 8.0 / 1_000_000.0 ) / duration. as_secs_f64 ( ) ;
You can’t perform that action at this time.
0 commit comments