mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-22 15:27:29 +01:00
Update MachineInfo
This commit is contained in:
parent
78522abd6c
commit
cdd26a5aaa
1 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,10 @@ export default class MachineInfo {
|
||||||
const totalmem = (os.totalmem() / 1024 / 1024 / 1024).toFixed(1);
|
const totalmem = (os.totalmem() / 1024 / 1024 / 1024).toFixed(1);
|
||||||
const freemem = (os.freemem() / 1024 / 1024 / 1024).toFixed(1);
|
const freemem = (os.freemem() / 1024 / 1024 / 1024).toFixed(1);
|
||||||
let logger = new Logger('Machine');
|
let logger = new Logger('Machine');
|
||||||
logger.info(os.hostname());
|
logger.info(`Hostname: ${os.hostname()}`);
|
||||||
|
logger.info(`Platform: ${process.platform}`);
|
||||||
|
logger.info(`Architecture: ${process.arch}`);
|
||||||
|
logger.info(`Node.js: ${process.version}`);
|
||||||
logger.info(`CPU: ${os.cpus().length}core`);
|
logger.info(`CPU: ${os.cpus().length}core`);
|
||||||
logger.info(`MEM: ${totalmem}GB (available: ${freemem}GB)`);
|
logger.info(`MEM: ${totalmem}GB (available: ${freemem}GB)`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue