You probably need delay too be ```tosend * 1024 / bwlimit_kbytes```