pinokiod 1.1.18 → 1.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kernel/index.js +8 -0
- package/package.json +1 -1
- package/server/index.js +2 -1
package/kernel/index.js
CHANGED
|
@@ -232,6 +232,13 @@ class Kernel {
|
|
|
232
232
|
let sysinfo = new Sysinfo()
|
|
233
233
|
await sysinfo.init()
|
|
234
234
|
let info = sysinfo.info
|
|
235
|
+
await fs.promises.writeFile(this.path("logs/system.json"), JSON.stringify({
|
|
236
|
+
platform: this.platform,
|
|
237
|
+
arch: this.arch,
|
|
238
|
+
home: this.homedir,
|
|
239
|
+
...info
|
|
240
|
+
}, null, 2))
|
|
241
|
+
this.sysinfo = info
|
|
235
242
|
|
|
236
243
|
await this.template.init({
|
|
237
244
|
kernel: this,
|
|
@@ -247,6 +254,7 @@ class Kernel {
|
|
|
247
254
|
await sysinfo.refresh()
|
|
248
255
|
let info = sysinfo.info
|
|
249
256
|
this.template.update(info)
|
|
257
|
+
this.sysinfo = info
|
|
250
258
|
}, 10000) // update every 10 seconds
|
|
251
259
|
|
|
252
260
|
// await this.template.init()
|
package/package.json
CHANGED
package/server/index.js
CHANGED