Changeset 96bdfb3 for core


Ignore:
Timestamp:
May 18, 2017 12:54:13 PM (3 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
e6b968e
Parents:
b8c97a1 (diff), 7002c68 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

propagate from branch 'i2p.i2p' (head 247ff5f9bcb20e4aa3ad4aa8702425c315d1d77b)

to branch 'i2p.i2p.str4d.ui' (head d4b5b96ff60f7d8b746c8fc5f0f9c533778a9eda)

Location:
core/java/src/net/i2p
Files:
2 edited

Legend:

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

    rb8c97a1 r96bdfb3  
    15671567        DecimalFormat fmt = new DecimalFormat("##0.00");
    15681568
     1569        // Replace &nbsp; with thin non-breaking space &#8239; (more consistent/predictable width between fonts & point sizes)
     1570
    15691571        String str = fmt.format(val);
    15701572        switch (scale) {
    1571             case 1: return str + "&nbsp;K";
    1572             case 2: return str + "&nbsp;M";
    1573             case 3: return str + "&nbsp;G";
    1574             case 4: return str + "&nbsp;T";
    1575             case 5: return str + "&nbsp;P";
    1576             case 6: return str + "&nbsp;E";
    1577             case 7: return str + "&nbsp;Z";
    1578             case 8: return str + "&nbsp;Y";
    1579             default: return bytes + "&nbsp;";
     1573            case 1: return str + "&#8239;K";
     1574            case 2: return str + "&#8239;M";
     1575            case 3: return str + "&#8239;G";
     1576            case 4: return str + "&#8239;T";
     1577            case 5: return str + "&#8239;P";
     1578            case 6: return str + "&#8239;E";
     1579            case 7: return str + "&#8239;Z";
     1580            case 8: return str + "&#8239;Y";
     1581            default: return bytes + "&#8239;";
    15801582        }
    15811583    }
  • core/java/src/net/i2p/kademlia/KBucketSet.java

    rb8c97a1 r96bdfb3  
    766766    public String toString() {
    767767        StringBuilder buf = new StringBuilder(1024);
    768         buf.append("Bucket set rooted on: ").append(_us.toString())
     768        buf.append("<hr><b>Bucket set rooted on:</b> ").append(_us.toString())
    769769           .append(" K=").append(BUCKET_SIZE)
    770770           .append(" B=").append(B_VALUE)
    771771           .append(" with ").append(size())
    772            .append(" keys in ").append(_buckets.size()).append(" buckets:\n");
     772           .append(" keys in ").append(_buckets.size()).append(" buckets:<br>\n");
    773773        getReadLock();
    774774        try {
     
    776776            for (int i = 0; i < len; i++) {
    777777                KBucket<T> b = _buckets.get(i);
    778                 buf.append("* Bucket ").append(i).append("/").append(len).append(": ");
    779                 buf.append(b.toString()).append("\n");
     778                buf.append("<b>Bucket ").append(i).append("/").append(len).append(":</b> ");
     779                buf.append(b.toString()).append("<br>\n");
    780780            }
    781781        } finally { releaseReadLock(); }
Note: See TracChangeset for help on using the changeset viewer.