Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Library size stat loses precision when total size reaches terabytes #3386

Closed
gvarph opened this issue Sep 7, 2024 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@gvarph
Copy link

gvarph commented Sep 7, 2024

What happened?

My library size recently reached 1TB, and since the library stats screen strips decimals, showing only that my library is 1TB (see attached image), but it does not specify it it is 1025GB or 1900GB

To be specific, the current size of my library is 1129115996KB ~= 1.13TB based on du -sh ., so I am not quite sure if it rounds up above 1.5TB

{57E140EA-085D-4C65-8186-B6CCF7D703EB}

What did you expect to happen?

I would like to see at least one or two decimals when the amount reaches above 1TB so I have a general idea of how much data my books are taking up without having to manually check the size of the directory they are stored in.

Steps to reproduce the issue

  1. Create a library with >1TB data
  2. Go to the settings>stats page
  3. Check the top bar to see the total size of the library

Audiobookshelf version

v2.13.3

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Other (list in "Additional Notes" box)

Logs

Additional Notes

Tested on both chrome (android), Firefox (windows), firefox (mac)

@gvarph gvarph added the bug Something isn't working label Sep 7, 2024
@advplyr advplyr added the awaiting release Issue is resolved and will be in the next release label Sep 7, 2024
@advplyr
Copy link
Owner

advplyr commented Sep 7, 2024

This was because it was actually converting to TiB instead of TB.

1129115996 KB is ~1.02 TiB.

This change will now show 1.1TB for your library.

Copy link

github-actions bot commented Sep 9, 2024

Fixed in v2.13.4.

@github-actions github-actions bot closed this as completed Sep 9, 2024
@github-actions github-actions bot removed the awaiting release Issue is resolved and will be in the next release label Sep 9, 2024
nichwall pushed a commit to nichwall/audiobookshelf that referenced this issue Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants