Browse Source

Downloader now uses floats for progress properly. Fixes issue 1404

git-svn-id: http://svn.dmdirc.com/trunk@4300 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Chris Smith 16 years ago
parent
commit
cc40c87b31
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/com/dmdirc/util/Downloader.java

+ 1
- 1
src/com/dmdirc/util/Downloader.java View File

@@ -171,7 +171,7 @@ public final class Downloader {
171 171
                 output.write(buffer, 0, count);
172 172
                 
173 173
                 if (listener != null) {
174
-                    listener.downloadProgress(100 * current / length);
174
+                    listener.downloadProgress(100 * (float) current / length);
175 175
                 }
176 176
             }
177 177
         } while (count > 0);

Loading…
Cancel
Save