Hide cpu usage

This commit is contained in:
Natsumi
2022-01-12 18:39:05 +13:00
parent 4c643f02ee
commit 8a66bed6a2
4 changed files with 43 additions and 77 deletions

View File

@@ -343,8 +343,10 @@ Vue.component('marquee-text', MarqueeText);
$app.methods.updateStatsLoop = async function () {
try {
this.currentTime = new Date().toJSON();
var cpuUsage = await AppApi.CpuUsage();
this.cpuUsage = cpuUsage.toFixed(0);
if (!this.config.hideCpuUsageFromFeed) {
var cpuUsage = await AppApi.CpuUsage();
this.cpuUsage = cpuUsage.toFixed(0);
}
this.lastLocationTimer = '';
if (this.lastLocation.date !== 0) {