Skip to content

Commit

Permalink
change to MB based number
Browse files Browse the repository at this point in the history
  • Loading branch information
hhbyyh committed Jan 18, 2015
1 parent 7afac23 commit e54e5c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ class RowMatrix(
throw new IllegalArgumentException(s"Argument with more than 65535 cols: $cols")
}
if (cols > 10000) {
val mem = (math.pow(cols, 2) * 8).formatted("%,.0f")
logWarning(s"$cols columns will require at least $mem bytes of memory!")
val memMB = (cols.toLong * cols) / 125000
logWarning(s"$cols columns will require at least $memMB megabytes of memory!")
}
}

Expand Down

0 comments on commit e54e5c8

Please sign in to comment.