From caeba1197c4b66e10614ffbddce0a2e98b0b5ef3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 24 May 2017 20:50:17 +0900 Subject: Refactoring --- src/utils/machineInfo.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils/machineInfo.ts') diff --git a/src/utils/machineInfo.ts b/src/utils/machineInfo.ts index acae773743..0c189cc7ca 100644 --- a/src/utils/machineInfo.ts +++ b/src/utils/machineInfo.ts @@ -2,10 +2,10 @@ import * as os from 'os'; import Logger from './logger'; export default class { - static show(): void { + public static show(): void { const totalmem = (os.totalmem() / 1024 / 1024 / 1024).toFixed(1); const freemem = (os.freemem() / 1024 / 1024 / 1024).toFixed(1); - let logger = new Logger('Machine'); + const logger = new Logger('Machine'); logger.info(`Hostname: ${os.hostname()}`); logger.info(`Platform: ${process.platform}`); logger.info(`Architecture: ${process.arch}`); -- cgit v1.2.3-freya