Ignore:
Timestamp:
2016-01-03T12:13:44+01:00 (4 years ago)
Author:
simon04
Message:

Uniform display of sizes (B, kB, MB, ...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/StreamProgressUpdater.java

    r9197 r9274  
    22package org.openstreetmap.josm.io;
    33
     4import java.util.Locale;
     5
    46import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    57import org.openstreetmap.josm.gui.progress.ProgressMonitor;
     8import org.openstreetmap.josm.tools.Utils;
    69
    710final class StreamProgressUpdater {
     
    4548                progressMonitor.setTicks(soFar);
    4649            }
    47             progressMonitor.setExtraText(soFar / 1024 + " KB");
     50            progressMonitor.setExtraText(Utils.getSizeString(soFar, Locale.getDefault()));
    4851        }
    4952    }
Note: See TracChangeset for help on using the changeset viewer.