Hide irq, iowait, steal, buffers and cached in web UI when the values are not available

This commit is contained in:
Floran Brutel 2015-05-07 13:48:57 +02:00
parent 1ce36026b4
commit cbba6b03ba
2 changed files with 5 additions and 5 deletions

View File

@ -5,19 +5,19 @@
{{result["cpu"].nice}}%
</div>
</div>
<div class="table-row">
<div class="table-row" ng-if="result['cpu'].irq">
<div class="table-cell text-left">irq:</div>
<div class="table-cell">
{{result["cpu"].irq}}%
</div>
</div>
<div class="table-row">
<div class="table-row" ng-if="result['cpu'].iowait">
<div class="table-cell text-left">iowait:</div>
<div class="table-cell" ng-class="getClass('cpu', 'cpu_iowait_', result['cpu'].iowait, 1)">
{{result["cpu"].iowait}}%
</div>
</div>
<div class="table-row">
<div class="table-row" ng-if="result['cpu'].steal">
<div class="table-cell text-left">steal:</div>
<div class="table-cell" ng-class="getClass('cpu', 'cpu_steal_', result['cpu'].steal, 0)">
{{result["cpu"].steal}}%

View File

@ -7,11 +7,11 @@
<div class="table-cell text-left">inactive:</div>
<div class="table-cell">{{result["mem"].inactive | bytes}}</div>
</div>
<div class="table-row">
<div class="table-row" ng-if="result['mem'].buffer">
<div class="table-cell text-left">buffers:</div>
<div class="table-cell">{{result["mem"].buffers | bytes}}</div>
</div>
<div class="table-row">
<div class="table-row" ng-if="result['mem'].cached">
<div class="table-cell text-left">cached:</div>
<div class="table-cell">{{result["mem"].cached | bytes}}</div>
</div>