CPU pinning: individual notice message for VM and Docker

This commit is contained in:
bergware
2018-09-05 16:37:26 +02:00
parent 30c5e26076
commit 4a9633941a
2 changed files with 4 additions and 6 deletions
+2
View File
@@ -23,6 +23,8 @@ Tag="map-marker"
</table>
<input type="button" value="Apply" onclick="apply(this.form)" disabled><input type="button" value="Done" onclick="done()"><span id="wait-ct" class="red-text" style="display:none"><i class="fa fa-spinner fa-spin"></i> Please wait...</span>
</form>
<?else:?>
<div class="notice">No CPU pinning available. Docker service must be started</div>
<?endif;?>
> This page gives a total view of the current CPU pinning assignments for Docker containers.<br>
+2 -6
View File
@@ -44,7 +44,6 @@ function create() {
}
?>
<style>
form{margin-bottom:20px}
table.tablesorter tr>th+th{text-align:right;vertical-align:top}
table.tablesorter tr>td+td+td{vertical-align:top}
table.tablesorter tr>th+th+th,table.tablesorter tr>td+td{text-align:center}
@@ -178,11 +177,6 @@ $(function(){
notice();
});
</script>
<?if (!$libvirtd && !$dockerd):?>
<div class="notice">No CPU pinning available. VM service or Docker service must be started</div>
<?endif;?>
<?if ($libvirtd):?>
<form name="vm">
<input type="hidden" name="names" id="names-vm" value="">
@@ -192,6 +186,8 @@ $(function(){
</table>
<input type="button" value="Apply" onclick="apply(this.form)" disabled><input type="button" value="Done" onclick="done()"><span id="wait-vm" class="red-text" style="display:none"><i class="fa fa-spinner fa-spin"></i> Please wait...</span>
</form>
<?else:?>
<div class="notice">No CPU pinning available. VM service must be started</div>
<?endif;?>
> This page gives a total view of the current CPU pinning assignments for VMs.<br>