Fixed progress calculation for wordlists with many millions of lines.

This commit is contained in:
ruri
2019-05-25 18:13:59 +02:00
parent be8602f779
commit 5cd60ed125
+10 -1
View File
@@ -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);
}
}