1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-18 10:45:48 +02:00

リファクタリング syuilo#4587 (#4766)

This commit is contained in:
MeiMei
2019-04-22 03:22:19 +09:00
committed by syuilo
parent acd4b101e1
commit 6b726eea39
8 changed files with 17 additions and 37 deletions

View File

@@ -56,20 +56,12 @@ function cpuUsage() {
// MEMORY(excl buffer + cache) STAT
async function usedMem() {
try {
const data = await sysUtils.mem();
return data.active;
} catch (error) {
throw error;
}
const data = await sysUtils.mem();
return data.active;
}
// TOTAL MEMORY STAT
async function totalMem() {
try {
const data = await sysUtils.mem();
return data.total;
} catch (error) {
throw error;
}
const data = await sysUtils.mem();
return data.total;
}