diff --git a/include/tools.h b/include/tools.h index 9ea7f89dc..484b67766 100644 --- a/include/tools.h +++ b/include/tools.h @@ -216,5 +216,10 @@ std::map getNetworkInterfaces(); */ std::string getBestPublicIp(); +/** Converts file size to human understandable format + * This function will convert a number to its equivalent size using units. + */ +std::string beautifyFileSize(uint64_t number); + } #endif // KIWIX_TOOLS_H diff --git a/src/tools/stringTools.h b/src/tools/stringTools.h index af0527f29..14fed7574 100644 --- a/src/tools/stringTools.h +++ b/src/tools/stringTools.h @@ -31,7 +31,6 @@ namespace kiwix { std::string beautifyInteger(uint64_t number); -std::string beautifyFileSize(uint64_t number); void printStringInHexadecimal(const char* s); void printStringInHexadecimal(icu::UnicodeString s); void stringReplacement(std::string& str,