commit | ad705bcb7e79a7cdb9891db17b4c40b13b6c30c3 | [log] [tgz] |
---|---|---|
author | Steven Noonan <steven@uplinklabs.net> | Mon Apr 08 15:05:25 2013 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Apr 09 20:00:35 2013 +0200 |
tree | 56c61ae6c493498757267fda87d6c7582c4fa2ab | |
parent | 73798eb297e4d4afa2f67d72eb2a3618592a1c4d [diff] |
implement 'unit_base' option to select between KB and Kbit et. al. With network testing, it's often desirable to measure in terms of kilobits/megabits rather than kilobytes/megabytes. This adds an option named 'unit_base' which can be set to either '1' or '8', where '1' means represent in terms of bits and '8' means to represent rate in terms of bytes. Signed-off-by: Steven Noonan <steven@uplinklabs.net> Signed-off-by: Jens Axboe <axboe@kernel.dk>