Skip to content

Commit

Permalink
Fixed left-align with text columns in stats view(regression introduce…
Browse files Browse the repository at this point in the history
…d with #3).
  • Loading branch information
ronniekk committed Aug 2, 2012
1 parent 148b406 commit a895849
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions locust/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,9 @@ a {
.status td, .status th {
padding: 10px;
margin: 0;
text-align: right;
}
.status td:first-child, th:first-child {
text-align: left;
.status td.numeric {
text-align: right;
}
.status tr.dark {
background:#0d1111;
Expand Down
16 changes: 8 additions & 8 deletions locust/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,14 @@ <h1>Version</h1>
<tr class="<%=(alternate ? "dark" : "")%>">
<td><%= (this.method ? this.method : "") %></td>
<td><%= this.name %></td>
<td><%= this.num_reqs %></td>
<td><%= this.num_failures %></td>
<td><%= Math.round(this.median_response_time) %></td>
<td><%= Math.round(this.avg_response_time) %></td>
<td><%= this.min_response_time %></td>
<td><%= this.max_response_time %></td>
<td><%= Math.round(this.avg_content_length) %></td>
<td><%= Math.round(this.current_rps*100)/100 %></td>
<td class="numeric"><%= this.num_reqs %></td>
<td class="numeric"><%= this.num_failures %></td>
<td class="numeric"><%= Math.round(this.median_response_time) %></td>
<td class="numeric"><%= Math.round(this.avg_response_time) %></td>
<td class="numeric"><%= this.min_response_time %></td>
<td class="numeric"><%= this.max_response_time %></td>
<td class="numeric"><%= Math.round(this.avg_content_length) %></td>
<td class="numeric"><%= Math.round(this.current_rps*100)/100 %></td>
</tr>
<% alternate = !alternate; %>
]]>
Expand Down

0 comments on commit a895849

Please sign in to comment.