We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong character accent ‘ -> ' The code was probably copied and pasted from the forum.
https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-core/src/main/java/com/jme3/util/MemoryUtils.java#L73
Logger.getLogger(MemoryUtils.class.getName()).log(Level.SEVERE, "Error retrieving ‘MemoryUsed’", ex); // <-- should be 'MemoryUsed'
https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-core/src/main/java/com/jme3/util/MemoryUtils.java#L87
Logger.getLogger(MemoryUtils.class.getName()).log(Level.SEVERE, "Error retrieving ‘Count’", ex); // <-- should be 'Count'
https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-core/src/main/java/com/jme3/util/MemoryUtils.java#L102
Logger.getLogger(MemoryUtils.class.getName()).log(Level.SEVERE, "Error retrieving ‘TotalCapacity’", ex); // <-- should be 'TotalCapacity'
Here is how the character ' is displayed in my editor:
/** * * @return the direct memory used in byte. */ public static long getDirectMemoryUsage() { try { Long value = (Long)mbeans.getAttribute(directPool, "MemoryUsed"); return value == null ? -1 : value; } catch (JMException ex) { Logger.getLogger(MemoryUtils.class.getName()).log(Level.SEVERE, "Error retrieving ‘MemoryUsed’", ex); // <-- return -1; } } /** * * @return the number of direct buffer used */ public static long getDirectMemoryCount() { try { Long value = (Long)mbeans.getAttribute(directPool, "Count"); return value == null ? -1 : value; } catch (JMException ex) { Logger.getLogger(MemoryUtils.class.getName()).log(Level.SEVERE, "Error retrieving ‘Count’", ex); // <-- return -1; } } /** * * @return Should return the total direct memory available, result seem off * see post http://jmonkeyengine.org/forum/topic/monitor-direct-memory-usage-in-your-app/#post-205999 */ public static long getDirectMemoryTotalCapacity() { try { Long value = (Long)mbeans.getAttribute(directPool, "TotalCapacity"); return value == null ? -1 : value; } catch (JMException ex) { Logger.getLogger(MemoryUtils.class.getName()).log(Level.SEVERE, "Error retrieving ‘TotalCapacity’", ex); // <-- return -1; } }
The text was updated successfully, but these errors were encountered:
solve issue #2184 (smart quotes in log messages)
7b73a28
solve issue #2184 (smart quotes in log messages) (#2185)
f156ce9
stephengold
Successfully merging a pull request may close this issue.
wrong character accent ‘ -> '
The code was probably copied and pasted from the forum.
https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-core/src/main/java/com/jme3/util/MemoryUtils.java#L73
https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-core/src/main/java/com/jme3/util/MemoryUtils.java#L87
https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-core/src/main/java/com/jme3/util/MemoryUtils.java#L102
Here is how the character ' is displayed in my editor:
The text was updated successfully, but these errors were encountered: