Skip to content

Commit 842875e

Browse files
[BugFix] cast to int can throw when dealing with bigger totals
1 parent 85d5fda commit 842875e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/FinderOuter/Services/ServiceBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected string GetKeyPerSec(BigInteger total, double totalSecond)
7373
}
7474
else
7575
{
76-
return $"k/s= {(int)total / totalSecond:n0}";
76+
return $"k/s= {total / new BigInteger(totalSecond):n0}";
7777
}
7878
}
7979

0 commit comments

Comments
 (0)