Skip to content

Commit

Permalink
os.totalmem() in os module in node js
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivekkumar0412 committed Nov 11, 2022
1 parent ab31400 commit 64919e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion os_module/osmodule.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ console.log(os.arch())
// i bacically tells the architure of our system

console.log(os.hostname());
// it will tell the host name
// it will tell the host name

console.log(os.totalmem()/1024/1024/1034);

// it will tell the total memory of ram of our system
// we divided it by 1024 three times because it return the results in bytes and we converted it into gb

0 comments on commit 64919e2

Please sign in to comment.