summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2018-07-27 17:58:19 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2018-07-27 17:58:19 +0900
commit75d04858e66954d7d8a7442be770c360d06aefef (patch)
treef49327e8424968cee0003211ae4f596bd7d6a54e
parent:sparkles: (diff)
downloadsharkey-75d04858e66954d7d8a7442be770c360d06aefef.tar.gz
sharkey-75d04858e66954d7d8a7442be770c360d06aefef.tar.bz2
sharkey-75d04858e66954d7d8a7442be770c360d06aefef.zip
:sparkles:
-rw-r--r--package.json1
-rw-r--r--src/daemons/server-stats.ts2
2 files changed, 2 insertions, 1 deletions
diff --git a/package.json b/package.json
index 4202c592ef..7e45b02baf 100644
--- a/package.json
+++ b/package.json
@@ -75,6 +75,7 @@
"@types/showdown": "1.7.5",
"@types/single-line-log": "1.1.0",
"@types/speakeasy": "2.0.2",
+ "@types/systeminformation": "3.23.0",
"@types/tmp": "0.0.33",
"@types/uuid": "3.4.3",
"@types/webpack": "4.4.8",
diff --git a/src/daemons/server-stats.ts b/src/daemons/server-stats.ts
index 39eb2699f0..6c3b68403b 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';