graphs: show cpu and memory info
This commit is contained in:
@@ -488,13 +488,13 @@ onUnmounted(async () => {
|
||||
</template>
|
||||
|
||||
<div class="graphs">
|
||||
<label>{{ $t('system.cpuUsage.title') }}</label>
|
||||
<label>{{ $t('system.cpuUsage.title') }} <span class="pull-right text-small">{{ systemCpus.length ? `${systemCpus.length} Core "${systemCpus[0].model}"` : '' }}</span></label>
|
||||
<div style="text-align: center" v-if="busy"><Spinner/></div>
|
||||
<div class="graph">
|
||||
<canvas v-show="!busy" ref="cpuGraphNode"></canvas>
|
||||
</div>
|
||||
|
||||
<label>{{ $t('system.systemMemory.title') }}</label>
|
||||
<label style="margin-top: 10px; display: block;">{{ $t('system.systemMemory.title') }} <span class="pull-right text-small">RAM: {{ prettyDecimalSize(systemMemory.memory) }} Swap: {{ prettyDecimalSize(systemMemory.swap) }}</span></label>
|
||||
<div style="text-align: center" v-if="busy"><Spinner/></div>
|
||||
<div class="graph">
|
||||
<canvas v-show="!busy" ref="memoryGraphNode"></canvas>
|
||||
|
||||
Reference in New Issue
Block a user