Refactoring
This commit is contained in:
parent
5a3cd80973
commit
caeba1197c
16 changed files with 84 additions and 206 deletions
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue