Skip to content

Commit

Permalink
Add constant
Browse files Browse the repository at this point in the history
  • Loading branch information
btmonier committed Oct 11, 2024
1 parent efe615b commit e1848b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/class_jvm_stats.R
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ jvmStats <- function() {

# Get memory profile
runtime <- rJava::.jcall("java/lang/Runtime", "Ljava/lang/Runtime;", "getRuntime")
gbConv <- 1024 ^ 3
gbConv <- 1073741824 # 1024 ^ 3
maxMem <- round(rJava::.jcall(runtime, "J", "maxMemory") / gbConv, 3)
totMem <- round(rJava::.jcall(runtime, "J", "totalMemory") / gbConv, 3)
freeMem <- round(rJava::.jcall(runtime, "J", "freeMemory") / gbConv, 3)
Expand Down

0 comments on commit e1848b6

Please sign in to comment.