Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
rateLimiter Namespace Reference

Variables

int MB = 1024 * 1024
 
int rate = float(sys.argv[1]) * MB
 
 start = time.time()
 
int total_read = 0
 
str buf = " "
 
 now = time.time()
 
 to_read = max(int(rate * (now - start)), 1)
 
int max_buf_size = 1 * MB
 

Variable Documentation

◆ buf

str buf = " "

◆ max_buf_size

int max_buf_size = 1 * MB

◆ MB

int MB = 1024 * 1024

◆ now

now = time.time()

◆ rate

int rate = float(sys.argv[1]) * MB

◆ start

start = time.time()

◆ to_read

to_read = max(int(rate * (now - start)), 1)

◆ total_read

int total_read = 0