js-ipfs
js-ipfs copied to clipboard
feat(bitswap humanize): add humanize flag (--human) support to bitswap stat
-
add humanize option (--human) to bitswap stat cli command
jsipfs bitswap stat --humanORjsipfs stats bitswap --human -
add related test for the same
closes: ipfs#2057
License: MIT Signed-off-by: Prabhakar-Poudel [email protected]
@alanshaw
Wanted to add more specific tests. Currently only the dup data received result is in Bytes.
Not sure how do I add dup data to make tests more meaningful/correct.
@Prabhakar-Poudel There are several merge conflicts at the moment. Mind rebasing master onto this branch?
Wanted to add more specific tests. Currently only the dup data received result is in Bytes. Not sure how do I add dup data to make tests more meaningful/correct.
You would need to fetch a file that exists in multiple other nodes.
fixed by https://github.com/ipfs/js-ipfs/pull/2619