MathWebSearch / mws

MathWebSearch Implementation
https://search.mathweb.org/
GNU General Public License v3.0
47 stars 12 forks source link

Compressed index size not reported correctly #36

Closed Raduh closed 10 years ago

Raduh commented 10 years ago

When running

  ./bin/mws-index -I ../data/zbl -o Index

The compressed index size is reported as 852K. However, du -h, says it is 861K.

cprodescu commented 10 years ago

Seems alright to me... (up to KiB / Kb standard (base 1000 or 1024) and rounding up or down. What does ls -lh say?

cprodescu commented 10 years ago

Also, it currently always prints Kb regardless of the magnitude of the data. Probably should add this to utils: http://stackoverflow.com/questions/3758606/how-to-convert-byte-size-into-human-readable-format-in-java