mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fixed progress calculation for wordlists with many millions of lines.
This commit is contained in:
@@ -86,7 +86,16 @@ namespace RuriLib.Runner
|
||||
get
|
||||
{
|
||||
int ret = 0;
|
||||
try { ret = ((TestedCount + StartingPoint - 1) * 100) / (DataPool.Size); } catch { }
|
||||
|
||||
try {
|
||||
double curr = TestedCount + StartingPoint - 1;
|
||||
double tot = DataPool.Size;
|
||||
double ratio = curr / tot;
|
||||
double percent = ratio * 100;
|
||||
ret = (int)percent;
|
||||
}
|
||||
catch { }
|
||||
|
||||
return Clamp(ret, 0, 100);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user