Skip to content
Snippets Groups Projects
Commit cdd26a5a authored by Aya Morisawa's avatar Aya Morisawa
Browse files

Update MachineInfo

parent 78522abd
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,10 @@ export default class MachineInfo {
const totalmem = (os.totalmem() / 1024 / 1024 / 1024).toFixed(1);
const freemem = (os.freemem() / 1024 / 1024 / 1024).toFixed(1);
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(`MEM: ${totalmem}GB (available: ${freemem}GB)`);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment