mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-11 06:18:11 +03:00
Hide irq, iowait, steal, buffers and cached in web UI when the values are not available
This commit is contained in:
parent
1ce36026b4
commit
cbba6b03ba
@ -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}}%
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user