I would rename this to bwlimit_speed and have a comment here saying /* in kB/s */ since it's not in kB, it's in kB/s; this becomes particularly relevant when we're actually using it in arithmetic, where it's effectively in micro-Bytes per nano-second (so we get a factor of a million showing up, to correct for the micro).