Skip to content

Commit

Permalink
[FLINK-2903][web-dashboard] Format numeric values of received/sent co…
Browse files Browse the repository at this point in the history
…unters.

This closes apache#1326
  • Loading branch information
sachingoel0101 authored and fhueske committed Nov 4, 2015
1 parent 1b2963c commit 50ab9a3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ table.table.table-body-hover.table-clickable.table-activable
span(ng-if="v.duration > -1") {{ v.duration }} ms

td.td-long {{ v.name | humanizeText }}
td {{ v.metrics['read-bytes'] }}
td {{ v.metrics['read-records'] }}
td {{ v.metrics['write-bytes'] }}
td {{ v.metrics['write-records'] }}
td {{ v.metrics['read-bytes'] | number }}
td {{ v.metrics['read-records'] | number }}
td {{ v.metrics['write-bytes'] | number }}
td {{ v.metrics['write-records'] | number }}
td
.label-group
bs-label(status="{{status}}" ng-repeat="(index, status) in stateList") {{v.tasks[status]}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ table.table.table-hover.table-clickable.table-activable.table-inner(ng-if="subta
span(ng-if="subtask.duration > -1") {{ subtask.duration }} ms

td
span(ng-if="subtask.metrics['read-bytes'] > -1") {{ subtask.metrics['read-bytes'] }}
span(ng-if="subtask.metrics['read-bytes'] > -1") {{ subtask.metrics['read-bytes'] | number }}
td
span(ng-if="subtask.metrics['read-records'] > -1") {{ subtask.metrics['read-records'] }}
span(ng-if="subtask.metrics['read-records'] > -1") {{ subtask.metrics['read-records'] | number }}
td
span(ng-if="subtask.metrics['write-bytes'] > -1") {{ subtask.metrics['write-bytes'] }}
span(ng-if="subtask.metrics['write-bytes'] > -1") {{ subtask.metrics['write-bytes'] | number }}
td
span(ng-if="subtask.metrics['write-records'] > -1") {{ subtask.metrics['write-records'] }}
span(ng-if="subtask.metrics['write-records'] > -1") {{ subtask.metrics['write-records'] | number }}

td {{ subtask.attempt + 1 }}
td {{ subtask.host }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
<td><span ng-if="v['end-time'] &gt; -1">{{ v['end-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss' }}</span></td>
<td><span ng-if="v.duration &gt; -1">{{ v.duration }} ms</span></td>
<td class="td-long">{{ v.name | humanizeText }}</td>
<td>{{ v.metrics['read-bytes'] }}</td>
<td>{{ v.metrics['read-records'] }}</td>
<td>{{ v.metrics['write-bytes'] }}</td>
<td>{{ v.metrics['write-records'] }}</td>
<td>{{ v.metrics['read-bytes'] | number }}</td>
<td>{{ v.metrics['read-records'] | number }}</td>
<td>{{ v.metrics['write-bytes'] | number }}</td>
<td>{{ v.metrics['write-records'] | number }}</td>
<td>
<div class="label-group">
<bs-label status="{{status}}" ng-repeat="(index, status) in stateList">{{v.tasks[status]}}</bs-label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
<td><span ng-if="subtask['start-time'] &gt; -1">{{ subtask['start-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss' }}</span></td>
<td><span ng-if="subtask['end-time'] &gt; -1">{{ subtask['end-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss' }}</span></td>
<td><span ng-if="subtask.duration &gt; -1">{{ subtask.duration }} ms</span></td>
<td><span ng-if="subtask.metrics['read-bytes'] &gt; -1">{{ subtask.metrics['read-bytes'] }}</span></td>
<td><span ng-if="subtask.metrics['read-records'] &gt; -1">{{ subtask.metrics['read-records'] }}</span></td>
<td><span ng-if="subtask.metrics['write-bytes'] &gt; -1">{{ subtask.metrics['write-bytes'] }}</span></td>
<td><span ng-if="subtask.metrics['write-records'] &gt; -1">{{ subtask.metrics['write-records'] }}</span></td>
<td><span ng-if="subtask.metrics['read-bytes'] &gt; -1">{{ subtask.metrics['read-bytes'] | number }}</span></td>
<td><span ng-if="subtask.metrics['read-records'] &gt; -1">{{ subtask.metrics['read-records'] | number }}</span></td>
<td><span ng-if="subtask.metrics['write-bytes'] &gt; -1">{{ subtask.metrics['write-bytes'] | number }}</span></td>
<td><span ng-if="subtask.metrics['write-records'] &gt; -1">{{ subtask.metrics['write-records'] | number }}</span></td>
<td>{{ subtask.attempt + 1 }}</td>
<td>{{ subtask.host }}</td>
<td>
Expand Down

0 comments on commit 50ab9a3

Please sign in to comment.