Skip to content

Commit 1cea3d8

Browse files
Merge branch 'master' of github.com:igorkasyanchuk/rails_performance
2 parents 30a60fa + e01f88d commit 1cea3d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/views/rails_performance/rails_performance/resources.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<% @resources_report.servers.each do |server| %>
44
<h1 class="title mt-8 pt-8"><%= server.name %></h1>
55

6-
<% server.charts.each.with_index do |chart, index| %>
6+
<% server.charts.each.with_index(1) do |chart, index| %>
77
<div class="card">
88
<div class="card-content">
99
<h2 class="subtitle"><%= chart.subtitle %></h2>
@@ -12,7 +12,7 @@
1212
</div>
1313
</div>
1414

15-
<br/>
15+
<br>
1616

1717
<% content_for :on_load do %>
1818
<script>

lib/rails_performance/system_monitor/resource_chart.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def initialize server
8484
)
8585
end
8686

87-
def signal measurement
87+
def format measurement
8888
measurement["available"].to_f.round(2)
8989
end
9090

0 commit comments

Comments
 (0)