This repository was archived by the owner on Feb 3, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ async function testerino() {
1313 console . log ( `System Total Memory: ${ sys . getTotalMemory ( ) } ` ) ;
1414 console . log ( `System CPU Usage: ${ sys . getCPUUsage ( ) } %` ) ;
1515 // it's intentional to emit a warning
16- // console.log(`System Memory by Megabytes:\n${inspect(sys.free(sys.Constants.FreeFlags.megabytes))}`);
17- // console.log(`System Memory by Gigabytes:\n${inspect(sys.free('gigabytes'))}\n`);
16+ console . log ( `System Memory by Megabytes:\n${ inspect ( sys . free ( sys . Constants . FreeFlags . megabytes ) ) } ` ) ;
17+ console . log ( `System Memory by Gigabytes:\n${ inspect ( sys . free ( 'gigabytes' ) ) } \n` ) ;
1818 console . log ( `System Load Average by 1: ${ sys . getLoadAvg ( 1 ) } ` ) ;
1919 console . log ( `System Load Average by 5: ${ sys . getLoadAvg ( 5 ) } ` ) ;
2020 console . log ( `System CPU Model (${ sys . getCPUInfo ( ) . firstModel } ...${ sys . getCPUInfo ( ) . lastModel } ):\n${ inspect ( sys . getCPUInfo ( ) ) } \n` ) ;
21- // console.log(`System Filesystem:\n${inspect(sys.getFilesystemInfo())}\n`);
21+ console . log ( `System Filesystem:\n${ inspect ( sys . getFilesystemInfo ( ) ) } \n` ) ;
2222 console . log ( `System Proccess by 10:\n${ inspect ( await sys . getProcesses ( 10 ) ) } \n` ) ;
23- // console.log(`Unix Uptime:\n${inspect(sys.getUnixUptime())}`);
23+ console . log ( `Unix Uptime:\n${ inspect ( sys . getUnixUptime ( ) ) } ` ) ;
2424 console . log ( `Workstation: ${ inspect ( sys . getWindowsWorkstation ( ) ) } ` ) ;
2525 console . log ( `Services: ${ inspect ( sys . getWindowsServices ( ) ) } ` ) ;
2626 console . log ( `Motherboard: ${ inspect ( sys . getMotherboard ( ) ) } ` ) ;
You can’t perform that action at this time.
0 commit comments