Home
last modified time | relevance | path

Searched refs:unit_amount (Results 1 – 1 of 1) sorted by relevance

/external/libchrome/base/strings/
Dstring_util.cc674 double unit_amount = static_cast<double>(bytes); in FormatBytesUnlocalized() local
677 while (unit_amount >= kKilo && in FormatBytesUnlocalized()
679 unit_amount /= kKilo; in FormatBytesUnlocalized()
684 if (bytes != 0 && dimension > 0 && unit_amount < 100) { in FormatBytesUnlocalized()
685 base::snprintf(buf, arraysize(buf), "%.1lf%s", unit_amount, in FormatBytesUnlocalized()
688 base::snprintf(buf, arraysize(buf), "%.0lf%s", unit_amount, in FormatBytesUnlocalized()