From b81cbedd5ca33d9ce75ec7be3c8dfe15e653322a Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Sun, 20 Sep 2015 11:08:27 +0000 Subject: [PATCH] format multiplies by 100, so complete is 1.0 --- apps/i2psnark/java/src/org/klomp/snark/Snark.java | 6 +++--- apps/i2psnark/java/src/org/klomp/snark/Storage.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/i2psnark/java/src/org/klomp/snark/Snark.java b/apps/i2psnark/java/src/org/klomp/snark/Snark.java index c8fd379708..952850597a 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/Snark.java +++ b/apps/i2psnark/java/src/org/klomp/snark/Snark.java @@ -746,15 +746,15 @@ public class Snark } /** - * If checking is in progress, return completion 0-100, - * else return 100. + * If checking is in progress, return completion 0.0 ... 1.0, + * else return 1.0. * @since 0.9.23 */ public double getCheckingProgress() { if (storage != null && storage.isChecking()) return storage.getCheckingProgress(); else - return 100.0d; + return 1.0d; } /** diff --git a/apps/i2psnark/java/src/org/klomp/snark/Storage.java b/apps/i2psnark/java/src/org/klomp/snark/Storage.java index 7d80aa291a..62cb1aa45d 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/Storage.java +++ b/apps/i2psnark/java/src/org/klomp/snark/Storage.java @@ -313,15 +313,15 @@ public class Storage implements Closeable } /** - * If checking is in progress, return completion 0-100, - * else return 100. + * If checking is in progress, return completion 0.0 ... 1.0, + * else return 1.0. * @since 0.9.23 */ public double getCheckingProgress() { if (_isChecking) return _checkProgress.get() / (double) pieces; else - return 100.0d; + return 1.0d; } /** -- GitLab