mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-09 23:17:21 +08:00
parent
2601135225
commit
a3a1e17849
2 changed files with 8 additions and 5 deletions
|
@ -118,6 +118,9 @@ func loadNetIO() {
|
||||||
netStatAll2, _ := net.IOCounters(false)
|
netStatAll2, _ := net.IOCounters(false)
|
||||||
for _, net2 := range netStatAll2 {
|
for _, net2 := range netStatAll2 {
|
||||||
for _, net1 := range netStatAll {
|
for _, net1 := range netStatAll {
|
||||||
|
if net1.BytesSent == 0 || net1.BytesRecv == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if net2.Name == net1.Name {
|
if net2.Name == net1.Name {
|
||||||
var itemNet model.MonitorNetwork
|
var itemNet model.MonitorNetwork
|
||||||
itemNet.Name = net1.Name
|
itemNet.Name = net1.Name
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
:start-placeholder="$t('commons.search.timeStart')"
|
:start-placeholder="$t('commons.search.timeStart')"
|
||||||
:end-placeholder="$t('commons.search.timeEnd')"
|
:end-placeholder="$t('commons.search.timeEnd')"
|
||||||
:shortcuts="shortcuts"
|
:shortcuts="shortcuts"
|
||||||
style="float: right; width: 330px"
|
style="float: right; width: 360px"
|
||||||
></el-date-picker>
|
></el-date-picker>
|
||||||
</template>
|
</template>
|
||||||
<div id="loadLoadChart" style="width: 100%; height: 400px"></div>
|
<div id="loadLoadChart" style="width: 100%; height: 400px"></div>
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
:start-placeholder="$t('commons.search.timeStart')"
|
:start-placeholder="$t('commons.search.timeStart')"
|
||||||
:end-placeholder="$t('commons.search.timeEnd')"
|
:end-placeholder="$t('commons.search.timeEnd')"
|
||||||
:shortcuts="shortcuts"
|
:shortcuts="shortcuts"
|
||||||
style="float: right; width: 330px"
|
style="float: right; width: 360px"
|
||||||
></el-date-picker>
|
></el-date-picker>
|
||||||
</template>
|
</template>
|
||||||
<div id="loadCPUChart" style="width: 100%; height: 400px"></div>
|
<div id="loadCPUChart" style="width: 100%; height: 400px"></div>
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
:start-placeholder="$t('commons.search.timeStart')"
|
:start-placeholder="$t('commons.search.timeStart')"
|
||||||
:end-placeholder="$t('commons.search.timeEnd')"
|
:end-placeholder="$t('commons.search.timeEnd')"
|
||||||
:shortcuts="shortcuts"
|
:shortcuts="shortcuts"
|
||||||
style="float: right; width: 330px"
|
style="float: right; width: 360px"
|
||||||
></el-date-picker>
|
></el-date-picker>
|
||||||
</template>
|
</template>
|
||||||
<div id="loadMemoryChart" style="width: 100%; height: 400px"></div>
|
<div id="loadMemoryChart" style="width: 100%; height: 400px"></div>
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
:start-placeholder="$t('commons.search.timeStart')"
|
:start-placeholder="$t('commons.search.timeStart')"
|
||||||
:end-placeholder="$t('commons.search.timeEnd')"
|
:end-placeholder="$t('commons.search.timeEnd')"
|
||||||
:shortcuts="shortcuts"
|
:shortcuts="shortcuts"
|
||||||
style="float: right; width: 330px"
|
style="float: right; width: 360px"
|
||||||
></el-date-picker>
|
></el-date-picker>
|
||||||
</template>
|
</template>
|
||||||
<div id="loadIOChart" style="width: 100%; height: 400px"></div>
|
<div id="loadIOChart" style="width: 100%; height: 400px"></div>
|
||||||
|
@ -114,7 +114,7 @@
|
||||||
:start-placeholder="$t('commons.search.timeStart')"
|
:start-placeholder="$t('commons.search.timeStart')"
|
||||||
:end-placeholder="$t('commons.search.timeEnd')"
|
:end-placeholder="$t('commons.search.timeEnd')"
|
||||||
:shortcuts="shortcuts"
|
:shortcuts="shortcuts"
|
||||||
style="float: right; width: 330px"
|
style="float: right; width: 360px"
|
||||||
></el-date-picker>
|
></el-date-picker>
|
||||||
</template>
|
</template>
|
||||||
<div id="loadNetworkChart" style="width: 100%; height: 400px"></div>
|
<div id="loadNetworkChart" style="width: 100%; height: 400px"></div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue