Skip to content

Commit

Permalink
Use System.totalMemoryNumber in debugger (#3266)
Browse files Browse the repository at this point in the history
  • Loading branch information
ACrazyTown authored Oct 17, 2024
1 parent ddb6a5f commit f5087ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flixel/system/debug/stats/Stats.hx
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ class Stats extends Window
*/
public inline function currentMem():Float
{
return (System.totalMemory / 1024) / 1000;
return (#if (openfl >= "9.4.0") System.totalMemoryNumber #else System.totalMemory #end / 1024) / 1000;
}

/**
Expand Down

0 comments on commit f5087ea

Please sign in to comment.