Fix server stats delta values

This commit is contained in:
Thibaud Fabre
2016-01-20 14:59:26 +01:00
parent 375ad3af0b
commit 6f5ef2df6a

View File

@@ -50,19 +50,21 @@
<th scope="row">Hits</th> <th scope="row">Hits</th>
<td>{{ collector.initialProfile.hits }}</td> <td>{{ collector.initialProfile.hits }}</td>
<td>{{ collector.currentProfile.hits }}</td> <td>{{ collector.currentProfile.hits }}</td>
<td>{{ collector.summary.hits }}</td> <td>{{ collector.currentProfile.hits - collector.initialProfile.hits }}</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Misses</th> <th scope="row">Misses</th>
<td>{{ collector.initialProfile.misses }}</td> <td>{{ collector.initialProfile.misses }}</td>
<td>{{ collector.currentProfile.misses }}</td> <td>{{ collector.currentProfile.misses }}</td>
<td>{{ collector.summary.misses }}</td> <td>{{ collector.currentProfile.misses - collector.initialProfile.misses }}</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Calls</th> <th scope="row">Calls</th>
<td>{{ collector.initialProfile.misses + collector.initialProfile.hits }}</td> {% set initialCallCount = collector.initialProfile.misses + collector.initialProfile.hits %}
<td>{{ collector.currentProfile.misses + collector.currentProfile.hits }}</td> {% set finalCallCount = collector.currentProfile.misses + collector.currentProfile.hits %}
<td>{{ collector.summary.calls }}</td> <td>{{ initialCallCount }}</td>
<td>{{ finalCallCount}}</td>
<td>{{ finalCallCount - initialCallCount }}</td>
</tr> </tr>
<tr> <tr>
<th scope="row">Uptime</th> <th scope="row">Uptime</th>