瀏覽代碼

- learning mathematics

Sebastian Stenzel 10 年之前
父節點
當前提交
afc62656bf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main/ui/src/main/java/org/cryptomator/ui/UnlockedController.java

+ 1 - 1
main/ui/src/main/java/org/cryptomator/ui/UnlockedController.java

@@ -82,7 +82,7 @@ public class UnlockedController implements Initializable {
 
 	private class IoSamplingAnimationHandler implements EventHandler<ActionEvent> {
 
-		private static final double BYTES_TO_MEGABYTES_FACTOR = IO_SAMPLING_INTERVAL / 1024.0 / 1024.0;
+		private static final double BYTES_TO_MEGABYTES_FACTOR = 1.0 / IO_SAMPLING_INTERVAL / 1024.0 / 1024.0;
 		private final CryptorIOSampling sampler;
 		private final Series<Number, Number> decryptedBytes;
 		private final Series<Number, Number> encryptedBytes;