js-ipfs icon indicating copy to clipboard operation
js-ipfs copied to clipboard

feat(bitswap humanize): add humanize flag (--human) support to bitswap stat

Open Prabhakar-Poudel opened this issue 6 years ago • 3 comments

  • add humanize option (--human) to bitswap stat cli command jsipfs bitswap stat --human OR jsipfs stats bitswap --human

  • add related test for the same

closes: ipfs#2057

License: MIT Signed-off-by: Prabhakar-Poudel [email protected]

Prabhakar-Poudel avatar Jun 01 '19 15:06 Prabhakar-Poudel

@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 avatar Jun 01 '19 15:06 Prabhakar-Poudel

@Prabhakar-Poudel There are several merge conflicts at the moment. Mind rebasing master onto this branch?

daviddias avatar Oct 10 '19 09:10 daviddias

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.

daviddias avatar Oct 10 '19 09:10 daviddias

fixed by https://github.com/ipfs/js-ipfs/pull/2619

TinyTb avatar Feb 02 '23 19:02 TinyTb