+ better computation of ZIM files sizes

This commit is contained in:
kelson42 2012-08-05 18:44:05 +00:00
parent cef66b20e1
commit 67211be8ad
1 changed files with 3 additions and 2 deletions

View File

@ -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;