后台概览增加缓存,增加上周统计数据,百分号
This commit is contained in:
parent
f98c044715
commit
90ea1804e9
|
@ -21,10 +21,10 @@
|
|||
<td><%= @pre_week_statistic.map(&:pv).sum %></td>
|
||||
<td><%= @pre_week_statistic.map(&:visitor).sum %></td>
|
||||
<td><%= @pre_week_statistic.map(&:ip).sum %></td>
|
||||
<td><%= (@pre_week_statistic.map(&:source_through).sum.to_f / 7).round(2) %></td>
|
||||
<td><%= (@pre_week_statistic.map(&:source_link).sum.to_f / 7).round(2) %></td>
|
||||
<td><%= (@pre_week_statistic.map(&:source_search).sum.to_f / 7).round(2) %></td>
|
||||
<td><%= ((@pre_week_statistic.map(&:source_custom) - [nil]).sum.to_f / 7).round(2) %></td>
|
||||
<td><%= (@pre_week_statistic.map(&:source_through).sum.to_f / 7).round(2) %>%</td>
|
||||
<td><%= (@pre_week_statistic.map(&:source_link).sum.to_f / 7).round(2) %>%</td>
|
||||
<td><%= (@pre_week_statistic.map(&:source_search).sum.to_f / 7).round(2) %>%</td>
|
||||
<td><%= ((@pre_week_statistic.map(&:source_custom) - [nil]).sum.to_f / 7).round(2) %>%</td>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue