Skip to content

Commit

Permalink
Merge pull request #462 from michaeldyrynda/chore/format-dashboard-st…
Browse files Browse the repository at this point in the history
…at-integers

[2.0] Format numbers on the stats dashboard for better readability
  • Loading branch information
taylorotwell authored Jan 10, 2019
2 parents 14e8de5 + ccb9b9e commit bfad893
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions resources/assets/js/pages/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
* Count processes for the given supervisor.
*/
countProcesses(processes) {
return _.chain(processes).values().sum().value()
return _.chain(processes).values().sum().value().toLocaleString()
},
Expand Down Expand Up @@ -139,21 +139,21 @@
<h2 class="stat-title">Jobs Per Minute</h2>
<h3 class="stat-meta">&nbsp;</h3>
<span class="stat-value">
{{ stats.jobsPerMinute }}
{{ stats.jobsPerMinute.toLocaleString() }}
</span>
</div>
<div class="stat col-3 p-4">
<h2 class="stat-title">Jobs past hour</h2>
<h3 class="stat-meta">&nbsp;</h3>
<span class="stat-value">
{{ stats.recentJobs }}
{{ stats.recentJobs.toLocaleString() }}
</span>
</div>
<div class="stat col-3 p-4">
<h2 class="stat-title">Failed Jobs past hour</h2>
<h3 class="stat-meta">&nbsp;</h3>
<span class="stat-value">
{{ stats.recentlyFailed }}
{{ stats.recentlyFailed.toLocaleString() }}
</span>
</div>
<div class="stat col-3 p-4 border-right-0">
Expand All @@ -172,7 +172,7 @@
<h2 class="stat-title">Total Processes</h2>
<h3 class="state-meta">&nbsp;</h3>
<span class="stat-value">
{{ stats.processes }}
{{ stats.processes.toLocaleString() }}
</span>
</div>

Expand Down Expand Up @@ -223,8 +223,8 @@
<td>
<span>{{ queue.name }}</span>
</td>
<td>{{ queue.processes }}</td>
<td>{{ queue.length }}</td>
<td>{{ queue.processes.toLocaleString() }}</td>
<td>{{ queue.length.toLocaleString() }}</td>
<td>{{ humanTime(queue.wait) }}</td>
</tr>
</tbody>
Expand Down

0 comments on commit bfad893

Please sign in to comment.