PC Uptime

This commit is contained in:
Natsumi
2022-04-21 00:54:49 +12:00
parent 6921c17ef7
commit 5d50150ad7
5 changed files with 33 additions and 8 deletions

View File

@@ -161,6 +161,7 @@ Vue.component('marquee-text', MarqueeText);
appType: location.href.substr(-1),
currentTime: new Date().toJSON(),
cpuUsage: 0,
pcUptime: '',
config: {},
photonLobbyBotSize: 0,
onlineFriendCount: 0,
@@ -364,6 +365,13 @@ Vue.component('marquee-text', MarqueeText);
} else {
this.devices = '';
}
if (this.config.pcUptimeOnFeed) {
AppApi.GetUptime().then((uptime) => {
this.pcUptime = timeToText(uptime);
});
} else {
this.pcUptime = '';
}
} catch (err) {
console.error(err);
}