mirror of https://github.com/kiwix/libkiwix.git
+ better computation of ZIM files sizes
This commit is contained in:
parent
cef66b20e1
commit
67211be8ad
|
@ -270,8 +270,9 @@ namespace kiwix {
|
|||
std::ostringstream mediaCountStream;
|
||||
mediaCountStream << reader.getMediaCount();
|
||||
book.mediaCount = mediaCountStream.str();
|
||||
|
||||
book.size = getFileSizeAsString(path);
|
||||
|
||||
ostringstream convert; convert << reader.getFileSize();
|
||||
book.size = convert.str();
|
||||
|
||||
string favicon;
|
||||
string faviconMimeType;
|
||||
|
|
Loading…
Reference in New Issue