Commit 607cdc0d authored by captainwong's avatar captainwong

udpate

parent f10944b0
...@@ -18,7 +18,7 @@ enum PositionalNotation { ...@@ -18,7 +18,7 @@ enum PositionalNotation {
* @brief Format byte count to human readable string * @brief Format byte count to human readable string
* @note bytes must less than 1DB(DoggaByte) * @note bytes must less than 1DB(DoggaByte)
*/ */
static std::string human_readable_byte_count(uintmax_t bytes, PositionalNotation po = PositionalNotation::Binary) static std::string human_readable_byte_count(uintmax_t bytes, size_t precision = 1, PositionalNotation po = PositionalNotation::Binary)
{ {
// http://programming.guide/java/formatting-byte-size-to-human-readable-format.html // http://programming.guide/java/formatting-byte-size-to-human-readable-format.html
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment