On 3/14/2016 2:27 PM, Mike Frysinger wrote:
the code seems to assume that the byte size scales into the number of chars required to represent the number in base 10 when it's really a log scale. here's a table to show it's wonky:
The number of bytes is also a log scale. The ratio of log_256 to log_10 is 2.4, so 3 is a reasonable approximation. It reasonably handles the case of 16-bit, 32-bit and 64-bit PIDs (which are all I would think would ever appear in the wild)
I don't see what the complaint is since its only bytes of stack space anyway...
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
