Sha256: 9998b4074d0c236cfa9366f1119ad43bc4025518f64d8c747707029433670f6f

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

<div class="hero-stats">
  <ol class="row">
    <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["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 %>' data-delete-hits='<%= @delete_hits %>' data-delete-misses='<%= @delete_misses %>'></div>
  </div>

  <div class="row">
    <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>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
memdash-0.1.0 lib/memdash/server/views/overview.erb