-Progress/speed meter accuracy improved.
This commit is contained in:
tonikelope 2018-10-30 15:31:32 +01:00
parent e92cc44c8c
commit 11d1022346
3 changed files with 3 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.tonikelope</groupId>
<artifactId>MegaBasterd</artifactId>
<version>5.58</version>
<version>5.59</version>
<packaging>jar</packaging>
<dependencies>
<dependency>

View File

@ -47,7 +47,7 @@ import java.io.File;
*/
public final class MainPanel {
public static final String VERSION = "5.58";
public static final String VERSION = "5.59";
public static final int THROTTLE_SLICE_SIZE = 16 * 1024;
public static final int DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024;
public static final int STREAMER_PORT = 1337;

View File

@ -67,10 +67,9 @@ public final class ProgressMeter implements Runnable, SecureSingleThreadNotifiab
while ((reads = _transference.getPartialProgress().poll()) != null) {
_progress += reads;
_transference.setProgress(_progress);
}
_transference.setProgress(_progress);
if (!_exit) {
secureWait();
}