Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrectly formats bytes

See original GitHub issue


        spaceSeparated: true,
        totalLength: 2,
        output: 'byte',
        base: 'binary'

Output: "1.0 kKiB"

Expected output: "1 MiB"


Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

isaac-jordancommented, Oct 7, 2020

Also running into this bug, showing 1 kGiB instead of 1 TiB.

BenjaminVanRyseghemcommented, Oct 7, 2020

ok 😄 things are getting out of hand 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Need help reading bytes from a file (incorrect bytes returned)
i am trying to create a simple program to edit MP3 tags.But the problem is i am stuck at the very first step,as...
Read more >
bytes formatting incorrect in python 3 · Issue #2070 - GitHub
The quick and dirty fix would be to just change the return type to be the same as the arg type. But the...
Read more >
FastLoad Error -incorrect number of bytes returned
i am using windows without unix platform. now i am trying to create a new empty table and want to insert this data...
Read more >
Text format is wrong??? - MSDN - Microsoft
I convert the text to "Windows-125": byte[] bytes = Encoding.
Read more >
Bytes sent incorrectly reported in log viewer - Sophos Firewall
We use Fastvue and these incorrect bytes values mess with our reporting. ... ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found