Skip to content

Commit

Permalink
Typecast
Browse files Browse the repository at this point in the history
  • Loading branch information
Argent77 committed Sep 11, 2024
1 parent 50cf051 commit 5d6c4ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/infinity/gui/StatusBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public String getMessage() {
*/
private void updateMemoryProgress() {
// using non-linear scaling for better resolution in lower memory ranges
final Function<Long, Integer> logScaled = value -> (int) Math.pow(Math.log(value / 1024L), 6.0);
final Function<Long, Integer> logScaled = value -> (int) Math.pow(Math.log(value / 1024.0), 6.0);

final Runtime rt = Runtime.getRuntime();

Expand Down

0 comments on commit 5d6c4ce

Please sign in to comment.