lib/memdash/server/views/overview.erb in memdash-0.0.1 vs lib/memdash/server/views/overview.erb in memdash-0.1.0

- old
+ new

@@ -1,19 +1,23 @@ <div class="hero-stats"> <ol class="row"> - <li class="span4"><span class="count"><%= miss_ratio_percentage(@last_report.stats.map{|_, v| v["get_hits"].to_f}.sum, @last_report.stats.map{|_, v| v["get_misses"].to_f}.sum).round(2) %>%</span>Cache miss ratio</li> + <li class="span4"><span class="count"><%= hit_ratio_percentage(@last_report.stats.map{|_, v| v["get_hits"].to_f}.sum, @last_report.stats.map{|_, v| v["get_misses"].to_f}.sum).round(2) %>%</span>Cache hit rate</li> <li class="span4"><span class="count"><%= @last_report.stats.map{|_, v| v["curr_items"]}.sum %></span>Current items in memcache</li> - <li class="span4"><span class="count"><%= (@last_report.stats.map{|_,v| v["bytes"].to_i}.sum / 1024.0 / 1024.0).round(2) %>/<%= @last_report.stats.map{|_,v| v["limit_maxbytes"].to_i}.sum / 1024 / 1024 %> MB</span>Current memory usage</li> + <li class="span4"><span class="count"><%= (@last_report.stats.map{|_,v| v["bytes"].to_i}.sum / 1024.0 / 1024.0).round(2) %>/<%= @last_report.stats.map{|_,v| v["engine_maxbytes"].to_i}.sum / 1024 / 1024 %> MB</span>Current memory usage</li> </ol> </div> <section class="container"> <div class="row"> <div id="gets-sets" class="span6" data-gets='<%= @gets %>' data-sets='<%= @sets %>'></div> - <div id="hits-misses" class="span6" data-hits='<%= @hits %>' data-misses='<%= @misses %>'></div> + <div id="hits-misses" class="span6" data-hits='<%= @hits %>' data-misses='<%= @misses %>' data-delete-hits='<%= @delete_hits %>' data-delete-misses='<%= @delete_misses %>'></div> </div> <div class="row"> - <div id="memory-usage" class="span6" data-limit-maxbytes='<%= @limit_maxbytes %>' data-bytes='<%= @bytes %>'></div> + <div id="memory-usage" class="span6" data-engine-maxbytes='<%= @engine_maxbytes %>' data-bytes='<%= @bytes %>'></div> <div id="current-items" class="span6" data-current-items='<%= @current_items %>'></div> + </div> + + <div class="row"> + <div id="evictions" class="span6" data-evictions='<%= @evictions %>'></div> </div> </section> \ No newline at end of file