Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //TODO: Fix the rounding issue, will output ^6 more digits instead of
- // rounding that off to the hundred thousandth place.
- public static double upConvertBytes(){
- double megabytes;
- double conversionFactor = .000001;
- double bytes = Runtime.getRuntime().freeMemory();
- megabytes = bytes * conversionFactor;
- return megabytes;
- }
Advertisement
Add Comment
Please, Sign In to add comment