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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -2006,7 +2006,8 @@ class Server {
2006
2006
  procs: this.kernel.procs,
2007
2007
  gpu: this.kernel.gpu,
2008
2008
  gpus: this.kernel.gpus,
2009
- version: this.version
2009
+ version: this.version,
2010
+ ...this.kernel.sysinfo
2010
2011
  }
2011
2012
  console.log("# info", info)
2012
2013