Skip to content

Commit

Permalink
Fix used memory calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Isti01 committed Nov 7, 2024
1 parent 6b3006e commit 96f4f73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class InstanceInfoDashboard(
listOf("Property", "Value"),
listOf(
listOf("Time", formatter.format(clock.getTimeInSeconds() * 1000)),
listOf("Used memory", "${(Runtime.getRuntime().maxMemory() - Runtime.getRuntime().freeMemory())
listOf("Used memory", "${(Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory())
/ (1000 * 1000)} MB"),
listOf("RPM", userActivityFilter.map { it.rpm.toString() }.orElse("")),
listOf("Users in 5m", userActivityFilter.map { it.usersIn5Minutes.toString() }.orElse("")),
Expand Down

0 comments on commit 96f4f73

Please sign in to comment.