Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

os-utils

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

os-utils - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

18

lib/osutils.js

@@ -42,3 +42,3 @@ var _os = require('os');

require('child_process').exec('df -h', function(error, stdout, stderr) {
require('child_process').exec('df -k', function(error, stdout, stderr) {

@@ -55,5 +55,5 @@ var total = 0;

total = disk_info[1]
used = disk_info[2]
free = disk_info[3]
total = Math.ceil((disk_info[1] * 1024)/ Math.pow(1024,3));
used = Math.ceil(disk_info[2] * 1024 / Math.pow(1024,3)) ;
free = Math.ceil(disk_info[3] * 1024 / Math.pow(1024,3)) ;

@@ -64,3 +64,11 @@ callback(total, free, used);

/*
* Returns All the load average usage for 1, 5 or 15 minutes.
*/
exports.allLoadavg = function(){
var loads = _os.loadavg();
return loads[0]+', '+loads[1]+', '+loads[2];
}

@@ -67,0 +75,0 @@ /*

{
"name" : "os-utils",
"version" : "0.0.11",
"version" : "0.0.12",
"description" : "an operating-system utility library",

@@ -5,0 +5,0 @@ "url" : "http://oscar-mejia.com",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc