I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit b81cbedd authored by zzz's avatar zzz
Browse files

format multiplies by 100, so complete is 1.0

parent 02a0ef35
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
/**
......
......@@ -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;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment