Changeset 63ddf11


Ignore:
Timestamp:
Nov 8, 2015 6:14:19 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
bdde11c
Parents:
a3b55cc
Message:

use float for efficiency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/DataHelper.java

    ra3b55cc r63ddf11  
    16181618     */
    16191619    public static String formatSize(long bytes) {
    1620         double val = bytes;
     1620        float val = bytes;
    16211621        int scale = 0;
    1622         while (val >= 1024) {
     1622        while (val >= 1024.0f) {
    16231623            scale++;
    1624             val /= 1024;
     1624            val /= 1024.0f;
    16251625        }
    16261626       
Note: See TracChangeset for help on using the changeset viewer.