修复在linux上无法显示负载图表的问题

This commit is contained in:
Chenx221 2024-04-15 16:41:31 +08:00
parent 9d890f6b02
commit 38720806eb
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021

View File

@ -1,4 +1,4 @@
<?php <?php
/* @var $this yii\web\View */ /* @var $this yii\web\View */
/* @var $systemInfo SystemInfoHelper */ /* @var $systemInfo SystemInfoHelper */
@ -57,7 +57,7 @@ $this->title = '系统信息';
</div> </div>
<hr> <hr>
<div class="row"> <div class="row">
<?php if ($systemInfo->osType === 2): ?> <?php if ($systemInfo->osType === 1): ?>
<div class="col-xxl-6"> <div class="col-xxl-6">
<h2> <h2>
<i class="fa-solid fa-bars-progress"></i> <i class="fa-solid fa-bars-progress"></i>
@ -312,8 +312,8 @@ if(needLoadGraph !== null){
}, },
yAxis: { yAxis: {
type: 'value', type: 'value',
min: 0, min: 0
max: 100 // max: 100
}, },
series: [ series: [
{ {
@ -322,7 +322,7 @@ if(needLoadGraph !== null){
label: { label: {
show: true, show: true,
position: 'top', position: 'top',
formatter: '{c}%' formatter: '{c}'
}, },
emphasis: { emphasis: {
label: { label: {