Skip to content

Commit 8f2e034

Browse files
committed
Change memory usage text update condition
Noticed that this led to minor inconveniences when testing #484.
1 parent f41e39c commit 8f2e034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ru/nsu/ccfit/zuev/osu/game/GameScene.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2747,7 +2747,7 @@ private void updateCounterTexts() {
27472747
urText.setText(Math.round(stat != null ? stat.getUnstableRate() : 0) + " UR");
27482748
}
27492749

2750-
if (BuildConfig.DEBUG) {
2750+
if (memText != null) {
27512751
var totalMemory = Runtime.getRuntime().totalMemory();
27522752
var usedMemory = totalMemory - Runtime.getRuntime().freeMemory();
27532753

0 commit comments

Comments
 (0)