summaryrefslogtreecommitdiff
path: root/src/daemons
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-07-27 18:18:49 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-07-27 18:18:49 +0900
commitb7b82456d80808d8f85fd112a60c11e28adba09d (patch)
tree12704d7a892982bfa660f651bda14e3a87b45f24 /src/daemons
parentFix bug (diff)
parent:sparkles: (diff)
downloadmisskey-b7b82456d80808d8f85fd112a60c11e28adba09d.tar.gz
misskey-b7b82456d80808d8f85fd112a60c11e28adba09d.tar.bz2
misskey-b7b82456d80808d8f85fd112a60c11e28adba09d.zip
Merge branch 'master' of https://github.com/syuilo/misskey
Diffstat (limited to 'src/daemons')
-rw-r--r--src/daemons/server-stats.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/daemons/server-stats.ts b/src/daemons/server-stats.ts
index d1b5126381..de70cf40b8 100644
--- a/src/daemons/server-stats.ts
+++ b/src/daemons/server-stats.ts
@@ -1,5 +1,5 @@
import * as os from 'os';
-const sysUtils = require('systeminformation');
+import * as sysUtils from 'systeminformation';
import * as diskusage from 'diskusage';
import Xev from 'xev';
@@ -61,6 +61,7 @@ async function usedMem() {
return data.active;
} catch (error) {
console.error(error);
+ throw error;
}
}
@@ -71,5 +72,6 @@ async function totalMem() {
return data.total;
} catch (error) {
console.error(error);
+ throw error;
}
}