Permalink
Browse files

num of memory used formatted

  • Loading branch information...
1 parent 48fcb17 commit 1e0877911b02d34b8d6f39eafd4b07d537bb2a5d @yssk22 committed May 7, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 apps/sunrise/_attachments/templates/index.ejs
@@ -45,10 +45,10 @@
<dt>Memory Usage</dt>
<dd>
<dl>
- <dt>RSS</dt><dd><%= stats.rss %></dd>
- <dt>VSIZE</dt><dd><%= stats.vsize %></dd>
- <dt>Heap Total</dt><dd><%= stats.heapTotal %></dd>
- <dt>Heap Used</dt><dd><%= stats.heapUsed %> (<%= sprintf("%.2f", (stats.heapUsed / stats.heapTotal) * 100) %>%)</dd>
+ <dt>RSS</dt><dd><%= sprintf("%.2f", (stats.rss / 1024 / 1024)) %>MB</dd>
+ <dt>VSIZE</dt><dd><%= sprintf("%.2f", (stats.vsize / 1024 / 1024)) %>MB</dd>
+ <dt>Heap Total</dt><dd><%= sprintf("%.2f", stats.heapTotal / 1024 / 1024) %>MB</dd>
+ <dt>Heap Used</dt><dd><%= sprintf("%.2f", stats.heapUsed / 1024 / 1024) %>MB (<%= sprintf("%.2f", (stats.heapUsed / stats.heapTotal) * 100) %>%)</dd>
</dl>
</dd>
</dl>

0 comments on commit 1e08779

Please sign in to comment.