iftechfoundation / ifarchive-admintool

Admin script for IF Archive work
1 stars 1 forks source link

Human-readable file sizes #26

Open dougo opened 9 months ago

dougo commented 9 months ago

It might be nice to display file sizes using M or G were appropriate instead of only using bytes.

erkyrath commented 9 months ago

I like knowing the exact size (and I even wrote a comma-separator function!) Could be a preference though.

dougo commented 9 months ago

Good point. Maybe it could show both? Or have a toggle or tooltip or something. Very minor issue.

dfabulich commented 9 months ago

For this use case, I think it's valuable to see more digits for larger sizes. It's easy to accidentally fail to notice a G vs. an M, harder to overlook that a number contains three commas 1,783,299,936